f2f18d82ab7b4e97e717c607253e9a9c14ad56b3
[tpg/acess2.git] / Tools / nativelib / time.c
1 /*
2  * Acess2 DiskTool
3  * - By John Hodge (thePowersGang)
4  * 
5  * time.c
6  * - Timing functions (emulated)
7  */
8 #include <acess.h>
9 #include <timers.h>
10
11 // === CODE ===
12 tTimer *Time_AllocateTimer(tTimerCallback *Callback, void *Argument)
13 {
14         return NULL;
15 }
16
17 void Time_ScheduleTimer(tTimer *Timer, int Delta)
18 {
19         if( !Timer )
20         {
21                 // SIGALRM
22                 Log_Warning("Time", "TODO: Alarm event in %i ms", Delta);
23         }
24         else
25         {
26
27         }
28 }
29
30 void Time_RemoveTimer(tTimer *Timer)
31 {
32         
33 }
34
35 void Time_FreeTimer(tTimer *Timer)
36 {
37         
38 }
39
40 Sint64 now(void)
41 {
42         // TODO: Translate UNIX time into Acess time
43         return 0;
44 }
45

UCC git Repository :: git.ucc.asn.au