aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/hp_timer.h
diff options
context:
space:
mode:
authorf0b0s <f0b0s@yandex-team.ru>2022-02-10 16:46:51 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:51 +0300
commitdeabc5260ac2e17b8f5152ee060bec1740613540 (patch)
treebc498b2fe3c447d13c2abea85b429fee8dd485ef /util/system/hp_timer.h
parent2e6009493e74f88988b81f219b301f450331648d (diff)
downloadydb-deabc5260ac2e17b8f5152ee060bec1740613540.tar.gz
Restoring authorship annotation for <f0b0s@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/hp_timer.h')
-rw-r--r--util/system/hp_timer.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/util/system/hp_timer.h b/util/system/hp_timer.h
index 0a4c252ec2..fe893017ab 100644
--- a/util/system/hp_timer.h
+++ b/util/system/hp_timer.h
@@ -14,23 +14,23 @@ namespace NHPTimer {
double GetClockRate() noexcept;
// same as GetClockRate, but in integer
ui64 GetCyclesPerSecond() noexcept;
-}
-
-struct THPTimer {
+}
+
+struct THPTimer {
THPTimer() noexcept {
- Reset();
- }
+ Reset();
+ }
void Reset() noexcept {
- NHPTimer::GetTime(&Start);
- }
+ NHPTimer::GetTime(&Start);
+ }
double Passed() const noexcept {
- NHPTimer::STime tmp = Start;
- return NHPTimer::GetTimePassed(&tmp);
- }
+ NHPTimer::STime tmp = Start;
+ return NHPTimer::GetTimePassed(&tmp);
+ }
double PassedReset() noexcept {
- return NHPTimer::GetTimePassed(&Start);
- }
+ return NHPTimer::GetTimePassed(&Start);
+ }
-private:
- NHPTimer::STime Start;
+private:
+ NHPTimer::STime Start;
};