Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/include/PR/os_time.h
7858 views
1
#ifndef _ULTRA64_TIME_H_
2
#define _ULTRA64_TIME_H_
3
4
#include <PR/ultratypes.h>
5
#include <PR/os_message.h>
6
7
/* Types */
8
9
typedef struct OSTimer_str
10
{
11
struct OSTimer_str *next;
12
struct OSTimer_str *prev;
13
u64 interval;
14
u64 remaining;
15
OSMesgQueue *mq;
16
OSMesg *msg;
17
} OSTimer;
18
19
typedef u64 OSTime;
20
21
/* Functions */
22
23
OSTime osGetTime(void);
24
void osSetTime(OSTime time);
25
u32 osSetTimer(OSTimer *, OSTime, OSTime, OSMesgQueue *, OSMesg);
26
27
#endif
28
29