aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime/cputimer.h
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit980edcd3304699edf9d4e4d6a656e585028e2a72 (patch)
tree139f47f3911484ae9af0eb347b1a88bd6c4bb35f /util/datetime/cputimer.h
parentb036a557f285146e5e35d4213e29a094ab907bcf (diff)
downloadydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/datetime/cputimer.h')
-rw-r--r--util/datetime/cputimer.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/datetime/cputimer.h b/util/datetime/cputimer.h
index 7d38d5bdb3..b7849cf735 100644
--- a/util/datetime/cputimer.h
+++ b/util/datetime/cputimer.h
@@ -7,7 +7,7 @@
#include <util/stream/str.h>
class TTimer {
-private:
+private:
TInstant Start_;
TStringStream Message_;
@@ -108,17 +108,17 @@ public:
#endif
class TTimeLogger {
-private:
+private:
TString Message;
bool Verbose;
- bool OK;
+ bool OK;
time_t Begin;
ui64 BeginCycles;
-
+
public:
TTimeLogger(const TString& message, bool verbose = true);
- ~TTimeLogger();
+ ~TTimeLogger();
- void SetOK();
+ void SetOK();
double ElapsedTime() const;
-};
+};