1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 11:49:24 +00:00
oot/include/ultra64/time.h

29 lines
452 B
C
Raw Normal View History

2020-03-17 04:31:30 +00:00
#ifndef _ULTRA64_TIME_H_
#define _ULTRA64_TIME_H_
#include <ultra64/os_message.h>
/* Types */
typedef u64 OSTime;
typedef struct OSTimer_s
{
struct OSTimer_s *next;
struct OSTimer_s *prev;
OSTime interval;
OSTime value;
OSMesgQueue *mq;
OSMesg msg;
} OSTimer;
/* Functions */
OSTime osGetTime(void);
int osSetTimer(OSTimer *timer, OSTime countdown, OSTime interval, OSMesgQueue *mq, OSMesg msg);
void osStopTimer(OSTimer *timer);
#endif