mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix getTime for Windows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user