2019-08-25 04:46:40 +00:00
|
|
|
#ifndef _ULTRA64_TIME_H_
|
|
|
|
#define _ULTRA64_TIME_H_
|
2019-09-01 19:50:50 +00:00
|
|
|
|
|
|
|
#include <PR/ultratypes.h>
|
2019-08-25 04:46:40 +00:00
|
|
|
#include <PR/os_message.h>
|
|
|
|
|
|
|
|
/* Types */
|
|
|
|
|
|
|
|
typedef struct OSTimer_str
|
|
|
|
{
|
|
|
|
struct OSTimer_str *next;
|
|
|
|
struct OSTimer_str *prev;
|
|
|
|
u64 interval;
|
|
|
|
u64 remaining;
|
|
|
|
OSMesgQueue *mq;
|
|
|
|
OSMesg *msg;
|
|
|
|
} OSTimer;
|
|
|
|
|
|
|
|
typedef u64 OSTime;
|
|
|
|
|
|
|
|
/* Functions */
|
|
|
|
|
|
|
|
OSTime osGetTime(void);
|
|
|
|
void osSetTime(OSTime time);
|
2022-03-13 08:17:10 +00:00
|
|
|
u32 osSetTimer(OSTimer *, OSTime, OSTime, OSMesgQueue *, OSMesg);
|
2019-08-25 04:46:40 +00:00
|
|
|
|
|
|
|
#endif
|