summaryrefslogtreecommitdiff
path: root/include/PR/os_time.h
blob: c29ac76de5b656eb98c857a01d9c08b8d518031c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _ULTRA64_TIME_H_
#define _ULTRA64_TIME_H_

#include <PR/ultratypes.h>
#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);
u32 osSetTimer(OSTimer*, OSTime, u64, OSMesgQueue*, OSMesg);

#endif