aboutsummaryrefslogtreecommitdiff
path: root/dc/dc.c
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-09 14:27:49 -0400
committeriamcheeseman <[email protected]>2026-05-09 14:27:49 -0400
commit59c2b995c611fc729aa74b0d3d67a5a8f345f22b (patch)
tree16ae9b3caccc872eee238c5e7adf0eaf63617b89 /dc/dc.c
parent71c9d121fef8d1c5f5f20ff1458551dc2953ab40 (diff)
add ty_sleep
Diffstat (limited to 'dc/dc.c')
-rw-r--r--dc/dc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dc/dc.c b/dc/dc.c
index c88937d..6285fd6 100644
--- a/dc/dc.c
+++ b/dc/dc.c
@@ -2,7 +2,7 @@
#include <teensy.h>
#include <math.h>
-#include <unistd.h>
+#include <time.h>
#define QOI_IMPLEMENTATION
#include "third/qoi.h"
@@ -80,7 +80,7 @@ int main(void)
ty_draw_end();
ty_tick();
- usleep(1000000 / (hints.ticrate * 2));
+ ty_sleep(1000 / hints.ticrate);
}
ty_free_image(img);