diff options
| author | 2023-05-28 17:45:47 -0400 | |
|---|---|---|
| committer | 2023-06-07 21:44:42 -0400 | |
| commit | 907507886d755fa56099713c4b8f05bb640a8b7d (patch) | |
| tree | a6ef3a8dfa9ba4aab797ab4985e078aba4b89fd2 /src/core/core_timing.h | |
| parent | time: Use compile time division for TimeSpanType conversion (diff) | |
| download | yuzu-907507886d755fa56099713c4b8f05bb640a8b7d.tar.gz yuzu-907507886d755fa56099713c4b8f05bb640a8b7d.tar.xz yuzu-907507886d755fa56099713c4b8f05bb640a8b7d.zip | |
(wall, native)_clock: Add GetGPUTick
Allows us to directly calculate the GPU tick without double conversion to and from the host clock tick.
Diffstat (limited to 'src/core/core_timing.h')
| -rw-r--r-- | src/core/core_timing.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index fdacdd94a..1873852c4 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h | |||
| @@ -119,6 +119,9 @@ public: | |||
| 119 | /// Returns the current CNTPCT tick value. | 119 | /// Returns the current CNTPCT tick value. |
| 120 | u64 GetClockTicks() const; | 120 | u64 GetClockTicks() const; |
| 121 | 121 | ||
| 122 | /// Returns the current GPU tick value. | ||
| 123 | u64 GetGPUTicks() const; | ||
| 124 | |||
| 122 | /// Returns current time in microseconds. | 125 | /// Returns current time in microseconds. |
| 123 | std::chrono::microseconds GetGlobalTimeUs() const; | 126 | std::chrono::microseconds GetGlobalTimeUs() const; |
| 124 | 127 | ||