diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-02 03:06:19 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-05 08:36:31 +0100 |
commit | bff14532825e7517882ca913738347059f73cf7f (patch) | |
tree | f21f509d4c7458a79e2fc399c1de3036a7efd51d /src/core/core_timing.h | |
parent | main: (Windows) Set the current timer resolution to the maximum (diff) | |
download | yuzu-bff14532825e7517882ca913738347059f73cf7f.tar yuzu-bff14532825e7517882ca913738347059f73cf7f.tar.gz yuzu-bff14532825e7517882ca913738347059f73cf7f.tar.bz2 yuzu-bff14532825e7517882ca913738347059f73cf7f.tar.lz yuzu-bff14532825e7517882ca913738347059f73cf7f.tar.xz yuzu-bff14532825e7517882ca913738347059f73cf7f.tar.zst yuzu-bff14532825e7517882ca913738347059f73cf7f.zip |
Diffstat (limited to 'src/core/core_timing.h')
-rw-r--r-- | src/core/core_timing.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index da366637b..4b89c0c39 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h @@ -122,6 +122,9 @@ public: /// Returns current time in emulated in Clock cycles u64 GetClockTicks() const; + /// Returns current time in nanoseconds. + std::chrono::nanoseconds GetCPUTimeNs() const; + /// Returns current time in microseconds. std::chrono::microseconds GetGlobalTimeUs() const; @@ -139,7 +142,8 @@ private: void Reset(); - std::unique_ptr<Common::WallClock> clock; + std::unique_ptr<Common::WallClock> cpu_clock; + std::unique_ptr<Common::WallClock> event_clock; s64 global_timer = 0; |