diff options
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 @@ | |||
| 17 | #include "common/spin_lock.h" | 17 | #include "common/spin_lock.h" |
| 18 | #include "common/thread.h" | 18 | #include "common/thread.h" |
| 19 | #include "common/threadsafe_queue.h" | 19 | #include "common/threadsafe_queue.h" |
| 20 | #include "common/wall_clock.h" | ||
| 20 | 21 | ||
| 21 | namespace Core::HostTiming { | 22 | namespace Core::HostTiming { |
| 22 | 23 | ||
| 23 | /// A callback that may be scheduled for a particular core timing event. | 24 | /// A callback that may be scheduled for a particular core timing event. |
| 24 | using TimedCallback = std::function<void(u64 userdata, s64 cycles_late)>; | 25 | using TimedCallback = std::function<void(u64 userdata, s64 cycles_late)>; |
| 25 | using sys_time_point = std::chrono::time_point<std::chrono::steady_clock>; | ||
| 26 | 26 | ||
| 27 | /// Contains the characteristics of a particular event. | 27 | /// Contains the characteristics of a particular event. |
| 28 | struct EventType { | 28 | struct EventType { |
| @@ -112,7 +112,7 @@ private: | |||
| 112 | static void ThreadEntry(CoreTiming& instance); | 112 | static void ThreadEntry(CoreTiming& instance); |
| 113 | void Advance(); | 113 | void Advance(); |
| 114 | 114 | ||
| 115 | sys_time_point start_time; | 115 | std::unique_ptr<Common::WallClock> clock; |
| 116 | 116 | ||
| 117 | u64 global_timer = 0; | 117 | u64 global_timer = 0; |
| 118 | 118 | ||