mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 04:07:51 +00:00
CPUManager: Get TimePlayedManager reference outside loop
This commit is contained in:
parent
0161065959
commit
ad0fe22f5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user