CPUManager: Get TimePlayedManager reference outside loop

This commit is contained in:
Dentomologist 2025-03-15 13:42:53 -07:00
parent 0161065959
commit ad0fe22f5c

View File

@ -75,10 +75,10 @@ void CPUManager::StartTimePlayedTimer()
// Steady clock for greater accuracy of timing
std::chrono::steady_clock 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