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.
This commit is contained in:
Lioncash 2018-08-05 22:07:28 -04:00 committed by zhupengfei
parent 5e658efdb8
commit 660be9499d
4 changed files with 14 additions and 14 deletions

View file

@ -17,6 +17,7 @@
* ScheduleEvent(periodInCycles - cyclesLate, callback, "whatever")
*/
#include <chrono>
#include <functional>
#include <limits>
#include <string>
@ -184,7 +185,7 @@ void ClearPendingEvents();
void ForceExceptionCheck(s64 cycles);
u64 GetGlobalTimeUs();
std::chrono::microseconds GetGlobalTimeUs();
s64 GetDowncount();