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