diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-07 00:03:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 00:03:05 +0200 |
commit | 83ef37ca37e052f4293c7693766f36f24754388e (patch) | |
tree | c113fb5c96276e1def8d2f4258b66167b0dd0c2b /src/core/perf_stats.h | |
parent | Merge pull request #945 from lioncash/exist (diff) | |
parent | perf_stats: Correct literal used for MAX_LAG_TIME_US (diff) | |
download | yuzu-83ef37ca37e052f4293c7693766f36f24754388e.tar yuzu-83ef37ca37e052f4293c7693766f36f24754388e.tar.gz yuzu-83ef37ca37e052f4293c7693766f36f24754388e.tar.bz2 yuzu-83ef37ca37e052f4293c7693766f36f24754388e.tar.lz yuzu-83ef37ca37e052f4293c7693766f36f24754388e.tar.xz yuzu-83ef37ca37e052f4293c7693766f36f24754388e.tar.zst yuzu-83ef37ca37e052f4293c7693766f36f24754388e.zip |
Diffstat (limited to 'src/core/perf_stats.h')
-rw-r--r-- | src/core/perf_stats.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/perf_stats.h b/src/core/perf_stats.h index 362b205c8..6e4619701 100644 --- a/src/core/perf_stats.h +++ b/src/core/perf_stats.h @@ -33,7 +33,7 @@ public: void EndSystemFrame(); void EndGameFrame(); - Results GetAndResetStats(u64 current_system_time_us); + Results GetAndResetStats(std::chrono::microseconds current_system_time_us); /** * Gets the ratio between walltime and the emulated time of the previous system frame. This is @@ -47,7 +47,7 @@ private: /// Point when the cumulative counters were reset Clock::time_point reset_point = Clock::now(); /// System time when the cumulative counters were reset - u64 reset_point_system_us = 0; + std::chrono::microseconds reset_point_system_us{0}; /// Cumulative duration (excluding v-sync/frame-limiting) of frames since last reset Clock::duration accumulated_frametime = Clock::duration::zero(); @@ -68,11 +68,11 @@ class FrameLimiter { public: using Clock = std::chrono::high_resolution_clock; - void DoFrameLimiting(u64 current_system_time_us); + void DoFrameLimiting(std::chrono::microseconds current_system_time_us); private: /// Emulated system time (in microseconds) at the last limiter invocation - u64 previous_system_time_us = 0; + std::chrono::microseconds previous_system_time_us{0}; /// Walltime at the last limiter invocation Clock::time_point previous_walltime = Clock::now(); |