summaryrefslogtreecommitdiffstats
path: root/src/common/wall_clock.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-10 20:02:04 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-18 22:29:22 +0200
commit49a7e0984a1210832b8be24433a95711c7ce029b (patch)
tree73cfc4456382895f75b6f56f5f1bb96501929de9 /src/common/wall_clock.cpp
parentCommon/Tests: Address Feedback (diff)
downloadyuzu-49a7e0984a1210832b8be24433a95711c7ce029b.tar
yuzu-49a7e0984a1210832b8be24433a95711c7ce029b.tar.gz
yuzu-49a7e0984a1210832b8be24433a95711c7ce029b.tar.bz2
yuzu-49a7e0984a1210832b8be24433a95711c7ce029b.tar.lz
yuzu-49a7e0984a1210832b8be24433a95711c7ce029b.tar.xz
yuzu-49a7e0984a1210832b8be24433a95711c7ce029b.tar.zst
yuzu-49a7e0984a1210832b8be24433a95711c7ce029b.zip
Diffstat (limited to 'src/common/wall_clock.cpp')
-rw-r--r--src/common/wall_clock.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp
index e6161c72c..d4d35f4e7 100644
--- a/src/common/wall_clock.cpp
+++ b/src/common/wall_clock.cpp
@@ -42,14 +42,15 @@ public:
u64 GetClockCycles() override {
std::chrono::nanoseconds time_now = GetTimeNS();
- const u128 temporal = Common::Multiply64Into128(time_now.count(), emulated_clock_frequency);
- return Common::Divide128On32(temporal, 1000000000).first;
+ const u128 temporary =
+ Common::Multiply64Into128(time_now.count(), emulated_clock_frequency);
+ return Common::Divide128On32(temporary, 1000000000).first;
}
u64 GetCPUCycles() override {
std::chrono::nanoseconds time_now = GetTimeNS();
- const u128 temporal = Common::Multiply64Into128(time_now.count(), emulated_cpu_frequency);
- return Common::Divide128On32(temporal, 1000000000).first;
+ const u128 temporary = Common::Multiply64Into128(time_now.count(), emulated_cpu_frequency);
+ return Common::Divide128On32(temporary, 1000000000).first;
}
private: