Explorar el Código

Fix getTime for Windows

Joel Schumacher hace 5 años
padre
commit
ba37b262c0
Se han modificado 1 ficheros con 1 adiciones y 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