common: wall_clock: Utilize constants for ms, us, and ns ratios
This commit is contained in:
parent
11099dda2e
commit
4e766280c4
3 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue