diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-04-23 05:08:28 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-06-08 03:44:42 +0200 |
commit | 1492a65454d6a03f641b136cc61e68870be00218 (patch) | |
tree | 5442ef0505fb075ee329a1a3cbb1be831987295e /src/common/steady_clock.cpp | |
parent | x64: Deduplicate RDTSC usage (diff) | |
download | yuzu-1492a65454d6a03f641b136cc61e68870be00218.tar yuzu-1492a65454d6a03f641b136cc61e68870be00218.tar.gz yuzu-1492a65454d6a03f641b136cc61e68870be00218.tar.bz2 yuzu-1492a65454d6a03f641b136cc61e68870be00218.tar.lz yuzu-1492a65454d6a03f641b136cc61e68870be00218.tar.xz yuzu-1492a65454d6a03f641b136cc61e68870be00218.tar.zst yuzu-1492a65454d6a03f641b136cc61e68870be00218.zip |
Diffstat (limited to '')
-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 |