From deabc5260ac2e17b8f5152ee060bec1740613540 Mon Sep 17 00:00:00 2001 From: f0b0s <f0b0s@yandex-team.ru> Date: Thu, 10 Feb 2022 16:46:51 +0300 Subject: Restoring authorship annotation for <f0b0s@yandex-team.ru>. Commit 1 of 2. --- util/system/hp_timer.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'util/system/hp_timer.h') 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; }; -- cgit v1.2.3