diff options
author | comex <comexk@gmail.com> | 2023-07-01 15:01:11 -0700 |
---|---|---|
committer | comex <comexk@gmail.com> | 2023-07-01 15:01:11 -0700 |
commit | 98685d48e3cb9f25f6919f004ec62cadf33afad2 (patch) | |
tree | 9df2ce7f57370641589bfae7196c77b090bcbe0f /src/common/steady_clock.cpp | |
parent | d885dd5b642807d0587acad43668cfccfdf06d1e (diff) | |
parent | 8857911216f16a098231c25e0d2992ab67e33f83 (diff) |
Merge remote-tracking branch 'origin/master' into ssl
Diffstat (limited to 'src/common/steady_clock.cpp')
-rw-r--r-- | src/common/steady_clock.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/steady_clock.cpp b/src/common/steady_clock.cpp index 782859196..9415eed29 100644 --- a/src/common/steady_clock.cpp +++ b/src/common/steady_clock.cpp @@ -28,13 +28,12 @@ static s64 GetSystemTimeNS() { // GetSystemTimePreciseAsFileTime returns the file time in 100ns units. static constexpr s64 Multiplier = 100; // Convert Windows epoch to Unix epoch. - static constexpr s64 WindowsEpochToUnixEpochNS = 0x19DB1DED53E8000LL; + static constexpr s64 WindowsEpochToUnixEpoch = 0x19DB1DED53E8000LL; FILETIME filetime; GetSystemTimePreciseAsFileTime(&filetime); return Multiplier * ((static_cast<s64>(filetime.dwHighDateTime) << 32) + - static_cast<s64>(filetime.dwLowDateTime)) - - WindowsEpochToUnixEpochNS; + static_cast<s64>(filetime.dwLowDateTime) - WindowsEpochToUnixEpoch); } #endif |