summaryrefslogtreecommitdiffstats
path: root/util/system/hp_timer.cpp
diff options
context:
space:
mode:
authoryazevnul <[email protected]>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/system/hp_timer.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/hp_timer.cpp')
-rw-r--r--util/system/hp_timer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/hp_timer.cpp b/util/system/hp_timer.cpp
index e4c3f21e6b4..310db999e66 100644
--- a/util/system/hp_timer.cpp
+++ b/util/system/hp_timer.cpp
@@ -66,8 +66,8 @@ namespace {
double vec[N_VEC];
- for (auto& i : vec) {
- i = EstimateCPUClock();
+ for (auto& i : vec) {
+ i = EstimateCPUClock();
}
Sort(vec, vec + N_VEC);
@@ -93,23 +93,23 @@ namespace {
};
}
-double NHPTimer::GetSeconds(const STime& a) noexcept {
+double NHPTimer::GetSeconds(const STime& a) noexcept {
return TFreq::Instance().GetSeconds(a);
}
-double NHPTimer::GetClockRate() noexcept {
+double NHPTimer::GetClockRate() noexcept {
return TFreq::Instance().GetClockRate();
}
-ui64 NHPTimer::GetCyclesPerSecond() noexcept {
+ui64 NHPTimer::GetCyclesPerSecond() noexcept {
return TFreq::Instance().GetCyclesPerSecond();
}
-void NHPTimer::GetTime(STime* pTime) noexcept {
+void NHPTimer::GetTime(STime* pTime) noexcept {
*pTime = GetCycleCount();
}
-double NHPTimer::GetTimePassed(STime* pTime) noexcept {
+double NHPTimer::GetTimePassed(STime* pTime) noexcept {
STime old(*pTime);
*pTime = GetCycleCount();