Core: Make play time tracking use SteadyAwakeClock.

This commit is contained in:
Jordan Woyak 2025-07-24 00:02:49 -05:00
commit 81ebf45c9b

View file

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