diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-03-10 19:55:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 19:55:11 +0100 |
commit | 021af4fd0016c49009e3c1ff51ff73aba75b9eb4 (patch) | |
tree | c589832d3b517d96dae79b7263b92fe69a3457ba /src/common/x64/native_clock.h | |
parent | Merge pull request #9916 from liamwhite/fpu (diff) | |
parent | perf_stats: Check multicore first (diff) | |
download | yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar.gz yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar.bz2 yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar.lz yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar.xz yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar.zst yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.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 |