summaryrefslogtreecommitdiff
path: root/src/sys/sys_timer.c
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-04-08 18:05:46 -0600
committerSonic Dreamcaster <alejandro.asenjo88@gmail.com>2024-09-17 19:14:09 -0300
commit3892bcefa20e4262a676466050d5810b04454faa (patch)
tree1fb42f12f53d7cdb88afea708c3b1a36ae06da36 /src/sys/sys_timer.c
parented2a45796b5f0af0c27cc0c304b035cda4bb0099 (diff)
parent0a8c61789e5a04811a6efcd5c6af91637c5d8e57 (diff)
Merge branch 'master' into otr
Diffstat (limited to 'src/sys/sys_timer.c')
-rw-r--r--src/sys/sys_timer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sys/sys_timer.c b/src/sys/sys_timer.c
index f84577fe..b00fbc9c 100644
--- a/src/sys/sys_timer.c
+++ b/src/sys/sys_timer.c
@@ -41,4 +41,10 @@ void Timer_CompleteTask(TimerTask* task) {
task->active = false;
}
-void \ No newline at end of file
+void Timer_Wait(u64 time) {
+ OSTimer timer;
+ OSMesg dummy;
+
+ osSetTimer(&timer, time, 0, &gTimerWaitMesgQueue, NULL);
+ MQ_WAIT_FOR_MESG(&gTimerWaitMesgQueue, &dummy);
+}