diff options
| -rw-r--r-- | src/common/x64/native_clock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/x64/native_clock.cpp b/src/common/x64/native_clock.cpp index 3f90343a5..76c66e7ee 100644 --- a/src/common/x64/native_clock.cpp +++ b/src/common/x64/native_clock.cpp | |||
| @@ -72,13 +72,13 @@ NativeClock::NativeClock(u64 emulated_cpu_frequency_, u64 emulated_clock_frequen | |||
| 72 | u64 rtsc_frequency_) | 72 | u64 rtsc_frequency_) |
| 73 | : WallClock(emulated_cpu_frequency_, emulated_clock_frequency_, true), rtsc_frequency{ | 73 | : WallClock(emulated_cpu_frequency_, emulated_clock_frequency_, true), rtsc_frequency{ |
| 74 | rtsc_frequency_} { | 74 | rtsc_frequency_} { |
| 75 | // Thread to re-adjust the RDTSC frequency after 30 seconds has elapsed. | 75 | // Thread to re-adjust the RDTSC frequency after 10 seconds has elapsed. |
| 76 | time_sync_thread = std::jthread{[this](std::stop_token token) { | 76 | time_sync_thread = std::jthread{[this](std::stop_token token) { |
| 77 | // Get the current time. | 77 | // Get the current time. |
| 78 | const auto start_time = Common::RealTimeClock::Now(); | 78 | const auto start_time = Common::RealTimeClock::Now(); |
| 79 | const u64 tsc_start = FencedRDTSC(); | 79 | const u64 tsc_start = FencedRDTSC(); |
| 80 | // Wait for 30 seconds. | 80 | // Wait for 10 seconds. |
| 81 | if (!Common::StoppableTimedWait(token, std::chrono::seconds{30})) { | 81 | if (!Common::StoppableTimedWait(token, std::chrono::seconds{10})) { |
| 82 | return; | 82 | return; |
| 83 | } | 83 | } |
| 84 | const auto end_time = Common::RealTimeClock::Now(); | 84 | const auto end_time = Common::RealTimeClock::Now(); |