Merge pull request #13825 from jordan-woyak/dont-count-playtime-while-suspended

Common/Timer: Add a SteadyAwakeClock class to make play time tracking ignore time while suspended.
This commit is contained in:
JMC47 authored and GitHub committed 2025-08-28 13:58:26 -04:00
commit e0c72cd963
3 files changed
+51 -2

No files matched your search

+2 -2
View File
@@ -72,8 +72,8 @@ void CPUManager::StartTimePlayedTimer()
{
Common::SetCurrentThreadName("Play Time Tracker");
// Steady clock for greater accuracy of timing
std::chrono::steady_clock timer;
// Use a clock that will appropriately ignore suspended system time.
Common::SteadyAwakeClock timer;
auto prev_time = timer.now();
while (true)