CPUManager: Get TimePlayedManager reference outside loop

This commit is contained in:
Dentomologist
2025-03-15 13:42:53 -07:00
parent 563dc9c756
commit cfc2ccf19f

View File

@@ -75,10 +75,10 @@ void CPUManager::StartTimePlayedTimer()
// Use a clock that will appropriately ignore suspended system time.
Common::SteadyAwakeClock timer;
auto prev_time = timer.now();
auto& time_played_manager = TimePlayedManager::GetInstance();
while (true)
{
auto& time_played_manager = TimePlayedManager::GetInstance();
auto curr_time = timer.now();
// Check that emulation is not paused