diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-03-07 16:54:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 16:54:13 +0100 |
commit | a7792e5ff83523142230951ac7eacbd7685dc40b (patch) | |
tree | a7531c65e2ddec1122fc071d44c8106c48352ce3 /src/core/core_timing.h | |
parent | Merge pull request #9890 from Kelebek1/reverb_fix (diff) | |
parent | native_clock: Round RDTSC frequency to the nearest 1000 (diff) | |
download | yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar.gz yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar.bz2 yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar.lz yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar.xz yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar.zst yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.zip |
Diffstat (limited to '')
-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; |