summaryrefslogtreecommitdiffstats
path: root/src/common/steady_clock.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-03-10 19:55:11 +0100
committerGitHub <noreply@github.com>2023-03-10 19:55:11 +0100
commit021af4fd0016c49009e3c1ff51ff73aba75b9eb4 (patch)
treec589832d3b517d96dae79b7263b92fe69a3457ba /src/common/steady_clock.h
parentMerge pull request #9916 from liamwhite/fpu (diff)
parentperf_stats: Check multicore first (diff)
downloadyuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar
yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar.gz
yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar.bz2
yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar.lz
yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar.xz
yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.tar.zst
yuzu-021af4fd0016c49009e3c1ff51ff73aba75b9eb4.zip
Diffstat (limited to 'src/common/steady_clock.h')
-rw-r--r--src/common/steady_clock.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/steady_clock.h b/src/common/steady_clock.h
index 9497cf865..dbd0e2513 100644
--- a/src/common/steady_clock.h
+++ b/src/common/steady_clock.h
@@ -20,4 +20,15 @@ struct SteadyClock {
[[nodiscard]] static time_point Now() noexcept;
};
+struct RealTimeClock {
+ using rep = s64;
+ using period = std::nano;
+ using duration = std::chrono::nanoseconds;
+ using time_point = std::chrono::time_point<RealTimeClock>;
+
+ static constexpr bool is_steady = false;
+
+ [[nodiscard]] static time_point Now() noexcept;
+};
+
} // namespace Common