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
commitfc8d3fe40009fab7705035e6ffdc3eb334307c80 (patch)
tree727a724ad16999a718de495cb330555f602cf01a /util/datetime
parentfcd93d3533aed781986b121b1362ca188bd96367 (diff)
downloadydb-fc8d3fe40009fab7705035e6ffdc3eb334307c80.tar.gz
Restoring authorship annotation for <aavdonkin@yandex-team.ru>. Commit 1 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 516d372c37..fe39face85 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 7d38d5bdb3..f2eff4dced 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;