diff options
| author | Mai <mathew1800@gmail.com> | 2022-08-03 14:30:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-03 14:30:29 -0400 |
| commit | a8b2174ce670de151bd991e6bfa89438d8ff0185 (patch) | |
| tree | bc5110b1796e293276ce21511bd84578d91e665b /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 173337104f9001c2d186db9303ea34652a94c191 (diff) | |
| parent | fec61f89a3bce9bf857a15ed4789629624e66584 (diff) | |
Merge pull request #10872 from shuffle2/timer
Timer improvements
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 412461d409..e51307fa15 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -1066,7 +1066,7 @@ bool Renderer::InitializeImGui() if (!RecompileImGuiPipeline()) return false; - m_imgui_last_frame_time = Common::Timer::GetTimeUs(); + m_imgui_last_frame_time = Common::Timer::NowUs(); BeginImGuiFrame(); return true; } @@ -1139,7 +1139,7 @@ void Renderer::BeginImGuiFrame() { std::unique_lock<std::mutex> imgui_lock(m_imgui_mutex); - const u64 current_time_us = Common::Timer::GetTimeUs(); + const u64 current_time_us = Common::Timer::NowUs(); const u64 time_diff_us = current_time_us - m_imgui_last_frame_time; const float time_diff_secs = static_cast<float>(time_diff_us / 1000000.0); m_imgui_last_frame_time = current_time_us; |
