mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
27 lines
482 B
C
27 lines
482 B
C
#ifndef _ULTRA64_TIME_H_
|
|
#define _ULTRA64_TIME_H_
|
|
|
|
#include <PR/ultratypes.h>
|
|
#include <PR/os_message.h>
|
|
|
|
/* Types */
|
|
|
|
typedef u64 OSTime;
|
|
|
|
typedef struct OSTimer_s {
|
|
struct OSTimer_s *next;
|
|
struct OSTimer_s *prev;
|
|
OSTime interval;
|
|
OSTime remaining;
|
|
OSMesgQueue *mq;
|
|
OSMesg *msg;
|
|
} OSTimer;
|
|
|
|
/* Functions */
|
|
|
|
OSTime osGetTime(void);
|
|
void osSetTime(OSTime time);
|
|
s32 osSetTimer(OSTimer *t, OSTime value, OSTime interval, OSMesgQueue *mq, OSMesg msg);
|
|
|
|
#endif
|