diff options
| author | 2018-08-05 22:07:28 -0400 | |
|---|---|---|
| committer | 2018-08-05 22:07:30 -0400 | |
| commit | a0c3a46aa9d2186e833bdc1872f9eb877230b429 (patch) | |
| tree | a8715386f729ac3b10f0862de5e8b08537495673 /src/core/core_timing.h | |
| parent | Merge pull request #927 from bunnei/fix-texs (diff) | |
| download | yuzu-a0c3a46aa9d2186e833bdc1872f9eb877230b429.tar.gz yuzu-a0c3a46aa9d2186e833bdc1872f9eb877230b429.tar.xz yuzu-a0c3a46aa9d2186e833bdc1872f9eb877230b429.zip | |
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.
Diffstat (limited to 'src/core/core_timing.h')
| -rw-r--r-- | src/core/core_timing.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
| 17 | * ScheduleEvent(periodInCycles - cyclesLate, callback, "whatever") | 17 | * ScheduleEvent(periodInCycles - cyclesLate, callback, "whatever") |
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | #include <chrono> | ||
| 20 | #include <functional> | 21 | #include <functional> |
| 21 | #include <string> | 22 | #include <string> |
| 22 | #include "common/common_types.h" | 23 | #include "common/common_types.h" |
| @@ -86,7 +87,7 @@ void ClearPendingEvents(); | |||
| 86 | 87 | ||
| 87 | void ForceExceptionCheck(s64 cycles); | 88 | void ForceExceptionCheck(s64 cycles); |
| 88 | 89 | ||
| 89 | u64 GetGlobalTimeUs(); | 90 | std::chrono::microseconds GetGlobalTimeUs(); |
| 90 | 91 | ||
| 91 | int GetDowncount(); | 92 | int GetDowncount(); |
| 92 | 93 | ||