From ba37b262c00cb3e08179227ff21575dde88fdb13 Mon Sep 17 00:00:00 2001 From: Joel Schumacher Date: Thu, 21 May 2020 16:02:12 +0200 Subject: [PATCH] Fix getTime for Windows --- src/modules/timer/Timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/timer/Timer.cpp b/src/modules/timer/Timer.cpp index 6b72be211..6b4a215d7 100644 --- a/src/modules/timer/Timer.cpp +++ b/src/modules/timer/Timer.cpp @@ -182,7 +182,7 @@ double Timer::getTime() const LARGE_INTEGER now = getTimeAbsolute(); LARGE_INTEGER rel; rel.QuadPart = now.QuadPart - start.QuadPart; - return rel.QuadPart / freq.QuadPart; + return (double) rel.QuadPart / (double) freq.QuadPart; } #endif