diff --git a/src/time.c b/src/time.c index 9cbed9f..ea7f4db 100644 --- a/src/time.c +++ b/src/time.c @@ -1,8 +1,7 @@ -unigi_type_time_scale unigi_time_clocks_per_sec = 1000; unigi_type_time_span unigi_time_get() { - return (unigi_type_time_span)SDL_GetTicks(); + return (unigi_type_time_span)SDL_GetTicks() * 1000; } void unigi_time_sleep(unigi_type_time_span t) { - SDL_Delay((unigi_type_time_span)t); + SDL_Delay((unigi_type_time_span)t / 1000); }