diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-01-30 12:57:23 -0500 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-01-30 12:57:23 -0500 |
commit | 6267110b694d3b3f8a8561c61ad6b4a4548873b5 (patch) | |
tree | 5255d1ef13ff15fd65c4dfa535b366856cbd8c85 /src/common/wall_clock.h | |
parent | 4e766280c4481d23a64a1c80c0ec40d7cf1ff378 (diff) |
common: wall_clock: Check precision against the emulated CPU and CNTFRQ
In addition to requiring nanosecond precision, using the native clock requires that the hardware TSC has a precision greater than the emulated CPU and its clock counter.
Diffstat (limited to 'src/common/wall_clock.h')
-rw-r--r-- | src/common/wall_clock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/wall_clock.h b/src/common/wall_clock.h index 4d132c531..874448c27 100644 --- a/src/common/wall_clock.h +++ b/src/common/wall_clock.h @@ -53,7 +53,7 @@ private: bool is_native; }; -[[nodiscard]] std::unique_ptr<WallClock> CreateBestMatchingClock(u32 emulated_cpu_frequency, - u32 emulated_clock_frequency); +[[nodiscard]] std::unique_ptr<WallClock> CreateBestMatchingClock(u64 emulated_cpu_frequency, + u64 emulated_clock_frequency); } // namespace Common |