Browse Source

extra fix

pull/3105/head
lizzie 4 weeks ago
committed by crueter
parent
commit
091b0bc562
  1. 2
      src/common/steady_clock.cpp

2
src/common/steady_clock.cpp

@ -35,7 +35,7 @@ static s64 GetSystemTimeNS() {
// Convert Windows epoch to Unix epoch.
constexpr s64 WindowsEpochToUnixEpoch = 0x19DB1DED53E8000LL;
FILETIME filetime;
GetSystemTimePreciseAsFileTime(&filetime);
pf(&filetime);
return Multiplier * ((s64(filetime.dwHighDateTime) << 32) + s64(filetime.dwLowDateTime) - WindowsEpochToUnixEpoch);
} else {
// Only Windows XP and below error out here

Loading…
Cancel
Save