diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-09 21:53:22 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-18 22:29:17 +0200 |
commit | 234b5ff6a999d7d69cdcdf214e0c3984cdab11cf (patch) | |
tree | 4f0ef41d7738b53d1b81ac2f7072bec1ba5fe8f1 /src/core/host_timing.h | |
parent | Tests: Add base tests to host timing (diff) | |
download | yuzu-234b5ff6a999d7d69cdcdf214e0c3984cdab11cf.tar yuzu-234b5ff6a999d7d69cdcdf214e0c3984cdab11cf.tar.gz yuzu-234b5ff6a999d7d69cdcdf214e0c3984cdab11cf.tar.bz2 yuzu-234b5ff6a999d7d69cdcdf214e0c3984cdab11cf.tar.lz yuzu-234b5ff6a999d7d69cdcdf214e0c3984cdab11cf.tar.xz yuzu-234b5ff6a999d7d69cdcdf214e0c3984cdab11cf.tar.zst yuzu-234b5ff6a999d7d69cdcdf214e0c3984cdab11cf.zip |
Diffstat (limited to 'src/core/host_timing.h')
-rw-r--r-- | src/core/host_timing.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/host_timing.h b/src/core/host_timing.h index 1d053a7fa..f04a150ee 100644 --- a/src/core/host_timing.h +++ b/src/core/host_timing.h @@ -17,12 +17,12 @@ #include "common/spin_lock.h" #include "common/thread.h" #include "common/threadsafe_queue.h" +#include "common/wall_clock.h" namespace Core::HostTiming { /// A callback that may be scheduled for a particular core timing event. using TimedCallback = std::function<void(u64 userdata, s64 cycles_late)>; -using sys_time_point = std::chrono::time_point<std::chrono::steady_clock>; /// Contains the characteristics of a particular event. struct EventType { @@ -112,7 +112,7 @@ private: static void ThreadEntry(CoreTiming& instance); void Advance(); - sys_time_point start_time; + std::unique_ptr<Common::WallClock> clock; u64 global_timer = 0; |