diff options
author | Lioncash <mathew1800@gmail.com> | 2019-06-05 02:11:04 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-06-05 02:31:46 +0200 |
commit | 2548661c08e006c6a56f976a4ef1c05653b3c6db (patch) | |
tree | 497a2ce65b806332ff7aa9106ed1673f6f600a14 /src/core/core_timing_util.h | |
parent | core/core_timing_util: Use std::chrono types for specifying time units (diff) | |
download | yuzu-2548661c08e006c6a56f976a4ef1c05653b3c6db.tar yuzu-2548661c08e006c6a56f976a4ef1c05653b3c6db.tar.gz yuzu-2548661c08e006c6a56f976a4ef1c05653b3c6db.tar.bz2 yuzu-2548661c08e006c6a56f976a4ef1c05653b3c6db.tar.lz yuzu-2548661c08e006c6a56f976a4ef1c05653b3c6db.tar.xz yuzu-2548661c08e006c6a56f976a4ef1c05653b3c6db.tar.zst yuzu-2548661c08e006c6a56f976a4ef1c05653b3c6db.zip |
Diffstat (limited to 'src/core/core_timing_util.h')
-rw-r--r-- | src/core/core_timing_util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core_timing_util.h b/src/core/core_timing_util.h index 1dcd38dd1..cdd84d70f 100644 --- a/src/core/core_timing_util.h +++ b/src/core/core_timing_util.h @@ -18,15 +18,15 @@ s64 msToCycles(std::chrono::milliseconds ms); s64 usToCycles(std::chrono::microseconds us); s64 nsToCycles(std::chrono::nanoseconds ns); -inline std::chrono::milliseconds cyclesToMs(s64 cycles) { +inline std::chrono::milliseconds CyclesToMs(s64 cycles) { return std::chrono::milliseconds(cycles * 1000 / BASE_CLOCK_RATE); } -inline std::chrono::nanoseconds cyclesToNs(s64 cycles) { +inline std::chrono::nanoseconds CyclesToNs(s64 cycles) { return std::chrono::nanoseconds(cycles * 1000000000 / BASE_CLOCK_RATE); } -inline std::chrono::microseconds cyclesToUs(s64 cycles) { +inline std::chrono::microseconds CyclesToUs(s64 cycles) { return std::chrono::microseconds(cycles * 1000000 / BASE_CLOCK_RATE); } |