diff options
Diffstat (limited to 'src/common/wall_clock.cpp')
| -rw-r--r-- | src/common/wall_clock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp index b4fb3a59f..ae07f2811 100644 --- a/src/common/wall_clock.cpp +++ b/src/common/wall_clock.cpp | |||
| @@ -67,7 +67,7 @@ std::unique_ptr<WallClock> CreateBestMatchingClock(u64 emulated_cpu_frequency, | |||
| 67 | const auto& caps = GetCPUCaps(); | 67 | const auto& caps = GetCPUCaps(); |
| 68 | u64 rtsc_frequency = 0; | 68 | u64 rtsc_frequency = 0; |
| 69 | if (caps.invariant_tsc) { | 69 | if (caps.invariant_tsc) { |
| 70 | rtsc_frequency = EstimateRDTSCFrequency(); | 70 | rtsc_frequency = caps.tsc_frequency ? caps.tsc_frequency : EstimateRDTSCFrequency(); |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | // Fallback to StandardWallClock if the hardware TSC does not have the precision greater than: | 73 | // Fallback to StandardWallClock if the hardware TSC does not have the precision greater than: |