summaryrefslogtreecommitdiffstats
path: root/src/core/core_timing_util.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-06 00:12:27 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-18 22:29:16 +0200
commit62e35ffc0effddfacb73ebc766735148436d7331 (patch)
tree10f765118c2f2bfd63dfc8ae0fc0f3a5aff6b1ba /src/core/core_timing_util.h
parentCommon: Polish Fiber class, add comments, asserts and more tests. (diff)
downloadyuzu-62e35ffc0effddfacb73ebc766735148436d7331.tar
yuzu-62e35ffc0effddfacb73ebc766735148436d7331.tar.gz
yuzu-62e35ffc0effddfacb73ebc766735148436d7331.tar.bz2
yuzu-62e35ffc0effddfacb73ebc766735148436d7331.tar.lz
yuzu-62e35ffc0effddfacb73ebc766735148436d7331.tar.xz
yuzu-62e35ffc0effddfacb73ebc766735148436d7331.tar.zst
yuzu-62e35ffc0effddfacb73ebc766735148436d7331.zip
Diffstat (limited to '')
-rw-r--r--src/core/core_timing_util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/core_timing_util.h b/src/core/core_timing_util.h
index addc72b19..65fb7368b 100644
--- a/src/core/core_timing_util.h
+++ b/src/core/core_timing_util.h
@@ -13,6 +13,7 @@ namespace Core::Timing {
s64 msToCycles(std::chrono::milliseconds ms);
s64 usToCycles(std::chrono::microseconds us);
s64 nsToCycles(std::chrono::nanoseconds ns);
+u64 nsToClockCycles(std::chrono::nanoseconds ns);
inline std::chrono::milliseconds CyclesToMs(s64 cycles) {
return std::chrono::milliseconds(cycles * 1000 / Hardware::BASE_CLOCK_RATE);