diff options
Diffstat (limited to 'src/util/timer')
| -rw-r--r-- | src/util/timer/timer_windows.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/timer/timer_windows.c b/src/util/timer/timer_windows.c index 37a8fd8..007efed 100644 --- a/src/util/timer/timer_windows.c +++ b/src/util/timer/timer_windows.c @@ -8,7 +8,7 @@ f64 aki_get_tick(void) { LARGE_INTEGER result; QueryPerformanceCounter(&result); - return (result.QuadPart/(f64)performance_frequency.QuadPart); + return result.QuadPart / (f64)performance_frequency.QuadPart; } static SYSTEMTIME unix_epoch = { @@ -35,5 +35,5 @@ u64 aki_get_timestamp(void) .LowPart = result1.dwLowDateTime, .HighPart = result1.dwHighDateTime }; - return (li1.QuadPart - li0.QuadPart) / 10; + return (li1.QuadPart - li0.QuadPart) / 10L; } |