diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2022-07-17 20:43:47 -0700 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2022-08-02 22:24:06 -0700 |
| commit | 09089eeee0bf6022cc7681214e51546d134402ea (patch) | |
| tree | 8a209216e224f8a28c1217459769efba6499a2fb /Source/Core/VideoCommon/FPSCounter.cpp | |
| parent | 8d16971a6fcd3534c9dd34d625c151d2a5ce3ed9 (diff) | |
Common::Timer: use chrono::steady_clock internally
Diffstat (limited to 'Source/Core/VideoCommon/FPSCounter.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FPSCounter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/FPSCounter.cpp b/Source/Core/VideoCommon/FPSCounter.cpp index 459856d1ef..e38305eb7f 100644 --- a/Source/Core/VideoCommon/FPSCounter.cpp +++ b/Source/Core/VideoCommon/FPSCounter.cpp @@ -16,7 +16,7 @@ static constexpr u64 FPS_REFRESH_INTERVAL_US = 250000; FPSCounter::FPSCounter() { - m_last_time = Common::Timer::GetTimeUs(); + m_last_time = Common::Timer::NowUs(); m_on_state_changed_handle = Core::AddOnStateChangedCallback([this](Core::State state) { if (state == Core::State::Paused) @@ -44,7 +44,7 @@ void FPSCounter::LogRenderTimeToFile(u64 val) void FPSCounter::Update() { - const u64 time = Common::Timer::GetTimeUs(); + const u64 time = Common::Timer::NowUs(); const u64 diff = time - m_last_time; m_time_diff_secs = static_cast<double>(diff / 1000000.0); if (g_ActiveConfig.bLogRenderTimeToFile) @@ -66,11 +66,11 @@ void FPSCounter::SetPaused(bool paused) { if (paused) { - m_last_time_pause = Common::Timer::GetTimeUs(); + m_last_time_pause = Common::Timer::NowUs(); } else { - const u64 time = Common::Timer::GetTimeUs(); + const u64 time = Common::Timer::NowUs(); const u64 diff = time - m_last_time_pause; m_last_time += diff; } |
