Explorar o código

Fix getTime for Windows

Joel Schumacher %!s(int64=5) %!d(string=hai) anos
pai
achega
ba37b262c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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