mirror of
				https://github.com/coop-deluxe/sm64coopdx.git
				synced 2025-10-30 08:01:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			460 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			460 B
		
	
	
	
		
			C
		
	
	
	
	
	
#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);
 | 
						|
void osSetTime(OSTime time);
 | 
						|
u32 osSetTimer(OSTimer *, OSTime, OSTime, OSMesgQueue *, OSMesg);
 | 
						|
 | 
						|
#endif
 |