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 83ef37ca37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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() {