summaryrefslogtreecommitdiffstats
path: root/src/common/wall_clock.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-01-30 18:36:56 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-01-30 18:36:56 +0100
commit4e766280c4481d23a64a1c80c0ec40d7cf1ff378 (patch)
tree85f078d686978b4b27fc44c7cf0b95a90a6cc4bf /src/common/wall_clock.h
parentMerge pull request #7791 from german77/wall_clock (diff)
downloadyuzu-4e766280c4481d23a64a1c80c0ec40d7cf1ff378.tar
yuzu-4e766280c4481d23a64a1c80c0ec40d7cf1ff378.tar.gz
yuzu-4e766280c4481d23a64a1c80c0ec40d7cf1ff378.tar.bz2
yuzu-4e766280c4481d23a64a1c80c0ec40d7cf1ff378.tar.lz
yuzu-4e766280c4481d23a64a1c80c0ec40d7cf1ff378.tar.xz
yuzu-4e766280c4481d23a64a1c80c0ec40d7cf1ff378.tar.zst
yuzu-4e766280c4481d23a64a1c80c0ec40d7cf1ff378.zip
Diffstat (limited to '')
-rw-r--r--src/common/wall_clock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/wall_clock.h b/src/common/wall_clock.h
index cef3e9499..4d132c531 100644
--- a/src/common/wall_clock.h
+++ b/src/common/wall_clock.h
@@ -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