From 8cbc307de0221f84c80c42dcbe07d40727537e2c Mon Sep 17 00:00:00 2001 From: yazevnul <yazevnul@yandex-team.ru> Date: Thu, 10 Feb 2022 16:46:46 +0300 Subject: Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2. --- util/datetime/cputimer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'util/datetime/cputimer.cpp') diff --git a/util/datetime/cputimer.cpp b/util/datetime/cputimer.cpp index 516d372c37..978d41254e 100644 --- a/util/datetime/cputimer.cpp +++ b/util/datetime/cputimer.cpp @@ -2,7 +2,7 @@ #include <util/system/defaults.h> #include <util/system/hp_timer.h> -#include <util/string/printf.h> +#include <util/string/printf.h> #include <util/stream/output.h> #include <util/generic/singleton.h> @@ -16,7 +16,7 @@ #include <util/system/winint.h> #endif -TTimer::TTimer(const TStringBuf message) { +TTimer::TTimer(const TStringBuf message) { static const int SMALL_DURATION_CHAR_LENGTH = 9; // strlen("0.123456s") Message_.Reserve(message.length() + SMALL_DURATION_CHAR_LENGTH + 1); // +"\n" Message_ << message; @@ -77,7 +77,7 @@ TString FormatCycles(ui64 cycles) { return result; } -TFormattedPrecisionTimer::TFormattedPrecisionTimer(const char* message, IOutputStream* out) +TFormattedPrecisionTimer::TFormattedPrecisionTimer(const char* message, IOutputStream* out) : Message(message) , Out(out) { @@ -106,7 +106,7 @@ TTimeLogger::TTimeLogger(const TString& message, bool verbose) : Message(message) , Verbose(verbose) , OK(false) - , Begin(time(nullptr)) + , Begin(time(nullptr)) , BeginCycles(GetCycleCount()) { if (Verbose) { @@ -116,7 +116,7 @@ TTimeLogger::TTimeLogger(const TString& message, bool verbose) } double TTimeLogger::ElapsedTime() const { - return time(nullptr) - Begin; + return time(nullptr) - Begin; } void TTimeLogger::SetOK() { @@ -124,7 +124,7 @@ void TTimeLogger::SetOK() { } TTimeLogger::~TTimeLogger() { - time_t tim = time(nullptr); + time_t tim = time(nullptr); ui64 endCycles = GetCycleCount(); if (Verbose) { const char* prefix = (OK) ? "" : "!"; -- cgit v1.2.3