From aff00d0dd893445047925fda2dbc26875bc661d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 21 Jun 2021 22:19:23 +0200 Subject: [PATCH] POSIX: Use frequency member for clarity --- src/posix_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posix_time.c b/src/posix_time.c index 9fe61d9f..b47a0b13 100644 --- a/src/posix_time.c +++ b/src/posix_time.c @@ -60,7 +60,7 @@ uint64_t _glfwPlatformGetTimerValue(void) { struct timespec ts; clock_gettime(_glfw.timer.posix.clock, &ts); - return (uint64_t) ts.tv_sec * (uint64_t) 1000000000 + (uint64_t) ts.tv_nsec; + return (uint64_t) ts.tv_sec * _glfw.timer.posix.frequency + (uint64_t) ts.tv_nsec; } uint64_t _glfwPlatformGetTimerFrequency(void)