Fix getTime for Windows

This commit is contained in:
Joel Schumacher
2020-05-21 16:02:12 +02:00
parent 0a5db1ba6d
commit ba37b262c0
+1 -1
View File
@@ -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