aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime
diff options
context:
space:
mode:
authoronpopov <onpopov@yandex-team.ru>2022-02-10 16:50:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:38 +0300
commit84a29dd4980d5b39615e453f289bd1a81213296d (patch)
tree5e320f10d6b5863e0d5ab1a8caa9eefbdaa5195f /util/datetime
parent1717072c6635948128dad7b015a0ec05acbe913b (diff)
downloadydb-84a29dd4980d5b39615e453f289bd1a81213296d.tar.gz
Restoring authorship annotation for <onpopov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/datetime')
-rw-r--r--util/datetime/cputimer.cpp10
-rw-r--r--util/datetime/cputimer.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/util/datetime/cputimer.cpp b/util/datetime/cputimer.cpp
index 516d372c37..846f63ee18 100644
--- a/util/datetime/cputimer.cpp
+++ b/util/datetime/cputimer.cpp
@@ -19,15 +19,15 @@
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;
- // Do not measure the allocations above.
+ Message_ << message;
+ // Do not measure the allocations above.
Start_ = TInstant::Now();
}
TTimer::~TTimer() {
- const TDuration duration = TInstant::Now() - Start_;
- Message_ << duration << "\n";
- Cerr << Message_.Str();
+ const TDuration duration = TInstant::Now() - Start_;
+ Message_ << duration << "\n";
+ Cerr << Message_.Str();
}
static ui64 ManuallySetCyclesPerSecond = 0;
diff --git a/util/datetime/cputimer.h b/util/datetime/cputimer.h
index 7d38d5bdb3..1d39d74190 100644
--- a/util/datetime/cputimer.h
+++ b/util/datetime/cputimer.h
@@ -4,12 +4,12 @@
#include <util/system/rusage.h>
#include <util/generic/string.h>
-#include <util/stream/str.h>
+#include <util/stream/str.h>
class TTimer {
private:
TInstant Start_;
- TStringStream Message_;
+ TStringStream Message_;
public:
TTimer(const TStringBuf message = TStringBuf(" took: "));