diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-05 03:44:31 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-08 03:17:46 +0100 |
commit | dcd13a7566340e80c042da7f626f9747ac71b8a7 (patch) | |
tree | 599ff3c744fc4dc0c8eef4bb986cf034ce93977c /src/common/x64/native_clock.h | |
parent | Merge pull request #9889 from Morph1984/time-is-ticking (diff) | |
download | yuzu-dcd13a7566340e80c042da7f626f9747ac71b8a7.tar yuzu-dcd13a7566340e80c042da7f626f9747ac71b8a7.tar.gz yuzu-dcd13a7566340e80c042da7f626f9747ac71b8a7.tar.bz2 yuzu-dcd13a7566340e80c042da7f626f9747ac71b8a7.tar.lz yuzu-dcd13a7566340e80c042da7f626f9747ac71b8a7.tar.xz yuzu-dcd13a7566340e80c042da7f626f9747ac71b8a7.tar.zst yuzu-dcd13a7566340e80c042da7f626f9747ac71b8a7.zip |
Diffstat (limited to 'src/common/x64/native_clock.h')
-rw-r--r-- | src/common/x64/native_clock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/x64/native_clock.h b/src/common/x64/native_clock.h index 38ae7a462..03ca291d8 100644 --- a/src/common/x64/native_clock.h +++ b/src/common/x64/native_clock.h @@ -3,6 +3,7 @@ #pragma once +#include "common/polyfill_thread.h" #include "common/wall_clock.h" namespace Common { @@ -28,6 +29,8 @@ public: private: u64 GetRTSC(); + void CalculateAndSetFactors(); + union alignas(16) TimePoint { TimePoint() : pack{} {} u128 pack{}; @@ -47,6 +50,8 @@ private: u64 ms_rtsc_factor{}; u64 rtsc_frequency; + + std::jthread time_sync_thread; }; } // namespace X64 |