From a0c3a46aa9d2186e833bdc1872f9eb877230b429 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 5 Aug 2018 22:07:28 -0400 Subject: core_timing: Make GetGlobalTimeUs() return std::chrono::microseconds Enforces the time unit being returned and also allows using the standard time utilities to manipulate it. --- src/core/core_timing.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/core_timing.h') diff --git a/src/core/core_timing.h b/src/core/core_timing.h index 7fe6380ad..3681e01ed 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h @@ -17,6 +17,7 @@ * ScheduleEvent(periodInCycles - cyclesLate, callback, "whatever") */ +#include #include #include #include "common/common_types.h" @@ -86,7 +87,7 @@ void ClearPendingEvents(); void ForceExceptionCheck(s64 cycles); -u64 GetGlobalTimeUs(); +std::chrono::microseconds GetGlobalTimeUs(); int GetDowncount(); -- cgit v1.2.3