aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime
diff options
context:
space:
mode:
authoraavdonkin <aavdonkin@yandex-team.ru>2022-02-10 16:49:57 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:57 +0300
commitefc32853c4263131bc59412eaf1a9e4aaae2a1f9 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/datetime
parentfc8d3fe40009fab7705035e6ffdc3eb334307c80 (diff)
downloadydb-efc32853c4263131bc59412eaf1a9e4aaae2a1f9.tar.gz
Restoring authorship annotation for <aavdonkin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/datetime')
-rw-r--r--util/datetime/cputimer.cpp2
-rw-r--r--util/datetime/cputimer.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/util/datetime/cputimer.cpp b/util/datetime/cputimer.cpp
index fe39face85..516d372c37 100644
--- a/util/datetime/cputimer.cpp
+++ b/util/datetime/cputimer.cpp
@@ -15,7 +15,7 @@
#elif defined(_win_)
#include <util/system/winint.h>
#endif
-
+
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"
diff --git a/util/datetime/cputimer.h b/util/datetime/cputimer.h
index f2eff4dced..7d38d5bdb3 100644
--- a/util/datetime/cputimer.h
+++ b/util/datetime/cputimer.h
@@ -1,5 +1,5 @@
#pragma once
-
+
#include "base.h"
#include <util/system/rusage.h>
@@ -11,11 +11,11 @@ private:
TInstant Start_;
TStringStream Message_;
-public:
+public:
TTimer(const TStringBuf message = TStringBuf(" took: "));
~TTimer();
-};
-
+};
+
class TSimpleTimer {
TInstant T;