diff options
-rw-r--r-- | compat/timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/timer.cpp b/compat/timer.cpp index e68b6d8d..fdea185a 100644 --- a/compat/timer.cpp +++ b/compat/timer.cpp @@ -66,7 +66,7 @@ void Timer::gettime(timespec* state) BOOL ret = QueryPerformanceCounter(&d); assert(ret && "QueryPerformanceCounter failed"); - constexpr int nsec = 1'000'000'000; + constexpr int nsec = 1'000'000 * 1000; state->tv_sec = (time_t)(d.QuadPart/freq); state->tv_nsec = (decltype(state->tv_nsec))(d.QuadPart % freq * nsec / freq); } |