Tools/NetTest - Add a runner to test networking stack
[tpg/acess2.git] / Tools / nativelib / time.c
index f2f18d8..6f941f2 100644 (file)
@@ -7,6 +7,7 @@
  */
 #include <acess.h>
 #include <timers.h>
+#include <events.h>
 
 // === CODE ===
 tTimer *Time_AllocateTimer(tTimerCallback *Callback, void *Argument)
@@ -37,6 +38,17 @@ void Time_FreeTimer(tTimer *Timer)
        
 }
 
+void Time_ScheduleEvent(int Delay)
+{
+       Log_Warning("Time", "TODO: EVENT_TIMER in %ims", Delay);
+}
+
+void Time_Delay(int Delay)
+{
+       Time_ScheduleEvent(Delay);
+       Threads_WaitEvents(THREAD_EVENT_TIMER);
+}
+
 Sint64 now(void)
 {
        // TODO: Translate UNIX time into Acess time

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