diff options
author | dimko <dimko@yandex-team.ru> | 2022-02-10 16:50:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:07 +0300 |
commit | 5df1bbceafd25528f800dbe399738150b20384f3 (patch) | |
tree | 9dda05f18a06906442e3deff7861fccc32c2c260 /util/datetime | |
parent | a0e29f0026d32a60a618a620f30035c264346175 (diff) | |
download | ydb-5df1bbceafd25528f800dbe399738150b20384f3.tar.gz |
Restoring authorship annotation for <dimko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/datetime')
-rw-r--r-- | util/datetime/cputimer.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/datetime/cputimer.h b/util/datetime/cputimer.h index 7d38d5bdb3..4fe3c70320 100644 --- a/util/datetime/cputimer.h +++ b/util/datetime/cputimer.h @@ -19,18 +19,18 @@ public: class TSimpleTimer { TInstant T; -public: +public: TSimpleTimer() { - Reset(); - } + Reset(); + } TDuration Get() const { return TInstant::Now() - T; - } + } void Reset() { T = TInstant::Now(); - } -}; - + } +}; + class TProfileTimer { TDuration T; |