Browse Source

Fix getTime for Windows

Joel Schumacher 5 years ago
parent
commit
ba37b262c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/timer/Timer.cpp

+ 1 - 1
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