mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-30 07:58:26 -04:00
common: wall_clock: Utilize constants for ms, us, and ns ratios
This commit is contained in:
@@ -13,6 +13,10 @@ namespace Common {
|
||||
|
||||
class WallClock {
|
||||
public:
|
||||
static constexpr u64 NS_RATIO = 1'000'000'000;
|
||||
static constexpr u64 US_RATIO = 1'000'000;
|
||||
static constexpr u64 MS_RATIO = 1'000;
|
||||
|
||||
virtual ~WallClock() = default;
|
||||
|
||||
/// Returns current wall time in nanoseconds
|
||||
|
||||
Reference in New Issue
Block a user