Fix compilation issue on Windows 10 with MINGW64
This commit is contained in:
parent
6732a8119c
commit
1c12ffe287
|
@ -42,7 +42,7 @@ long double Timer::getCurrentSystemTime() {
|
||||||
LARGE_INTEGER ticks;
|
LARGE_INTEGER ticks;
|
||||||
QueryPerformanceFrequency(&ticksPerSecond);
|
QueryPerformanceFrequency(&ticksPerSecond);
|
||||||
QueryPerformanceCounter(&ticks);
|
QueryPerformanceCounter(&ticks);
|
||||||
return (long double(ticks.QuadPart) / long double(ticksPerSecond.QuadPart));
|
return ((long double)(ticks.QuadPart) / (long double)(ticksPerSecond.QuadPart));
|
||||||
#else
|
#else
|
||||||
// Initialize the lastUpdateTime with the current time in seconds
|
// Initialize the lastUpdateTime with the current time in seconds
|
||||||
timeval timeValue;
|
timeval timeValue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user