diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-07-02 21:05:35 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-07-02 21:08:04 +0200 |
commit | c3fbc8d2fe2ff423d774ed3886fc8391c730f637 (patch) | |
tree | f069809e0b2c5f033b016b267705e507a970ae88 /src/core/core_timing.h | |
parent | Merge pull request #10949 from t895/memory-requirements (diff) | |
download | yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar.gz yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar.bz2 yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar.lz yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar.xz yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar.zst yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core_timing.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index 10db1de55..5bca1c78d 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h @@ -131,6 +131,10 @@ public: /// Checks for events manually and returns time in nanoseconds for next event, threadsafe. std::optional<s64> Advance(); +#ifdef _WIN32 + void SetTimerResolutionNs(std::chrono::nanoseconds ns); +#endif + private: struct Event; @@ -143,6 +147,10 @@ private: s64 global_timer = 0; +#ifdef _WIN32 + s64 timer_resolution_ns; +#endif + // The queue is a min-heap using std::make_heap/push_heap/pop_heap. // We don't use std::priority_queue because we need to be able to serialize, unserialize and // erase arbitrary events (RemoveEvent()) regardless of the queue order. These aren't |