mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
std::chrono cleanup: always use steady_clock
This commit is contained in:
parent
12a48fc6d1
commit
aa3aef4beb
19 changed files with 96 additions and 97 deletions
|
|
@ -137,7 +137,7 @@ namespace logs
|
|||
QueryPerformanceCounter(&start);
|
||||
}
|
||||
#else
|
||||
std::chrono::steady_clock::time_point start = std::chrono::steady_clock::now();
|
||||
steady_clock::time_point start = steady_clock::now();
|
||||
#endif
|
||||
|
||||
u64 get() const
|
||||
|
|
@ -148,7 +148,7 @@ namespace logs
|
|||
const LONGLONG diff = now.QuadPart - start.QuadPart;
|
||||
return diff / freq.QuadPart * 1'000'000 + diff % freq.QuadPart * 1'000'000 / freq.QuadPart;
|
||||
#else
|
||||
return std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now() - start).count();
|
||||
return (steady_clock::now() - start).count() / 1000;
|
||||
#endif
|
||||
}
|
||||
} timebase{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue