diff options
Diffstat (limited to 'src/common/wall_clock.h')
| -rw-r--r-- | src/common/wall_clock.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/wall_clock.h b/src/common/wall_clock.h index cef3e9499..874448c27 100644 --- a/src/common/wall_clock.h +++ b/src/common/wall_clock.h | |||
| @@ -13,6 +13,10 @@ namespace Common { | |||
| 13 | 13 | ||
| 14 | class WallClock { | 14 | class WallClock { |
| 15 | public: | 15 | public: |
| 16 | static constexpr u64 NS_RATIO = 1'000'000'000; | ||
| 17 | static constexpr u64 US_RATIO = 1'000'000; | ||
| 18 | static constexpr u64 MS_RATIO = 1'000; | ||
| 19 | |||
| 16 | virtual ~WallClock() = default; | 20 | virtual ~WallClock() = default; |
| 17 | 21 | ||
| 18 | /// Returns current wall time in nanoseconds | 22 | /// Returns current wall time in nanoseconds |
| @@ -49,7 +53,7 @@ private: | |||
| 49 | bool is_native; | 53 | bool is_native; |
| 50 | }; | 54 | }; |
| 51 | 55 | ||
| 52 | [[nodiscard]] std::unique_ptr<WallClock> CreateBestMatchingClock(u32 emulated_cpu_frequency, | 56 | [[nodiscard]] std::unique_ptr<WallClock> CreateBestMatchingClock(u64 emulated_cpu_frequency, |
| 53 | u32 emulated_clock_frequency); | 57 | u64 emulated_clock_frequency); |
| 54 | 58 | ||
| 55 | } // namespace Common | 59 | } // namespace Common |