Merge pull request #934 from lioncash/chrono

core_timing: Make GetGlobalTimeUs() return std::chrono::microseconds
This commit is contained in:
bunnei 2018-08-06 18:03:05 -04:00 committed by GitHub
commit 51c6d09680
4 changed files with 16 additions and 16 deletions

View file

@ -226,8 +226,8 @@ void Idle() {
downcount = 0;
}
u64 GetGlobalTimeUs() {
return GetTicks() * 1000000 / BASE_CLOCK_RATE;
std::chrono::microseconds GetGlobalTimeUs() {
return std::chrono::microseconds{GetTicks() * 1000000 / BASE_CLOCK_RATE};
}
int GetDowncount() {