diff options
author | akindyakov <akindyakov@yandex-team.ru> | 2022-02-10 16:52:05 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:52:05 +0300 |
commit | 6818ba20a3267db5010f361f1fadea6ce55cfb4c (patch) | |
tree | 36d485950f15930c3df85729057444b1e128de7f /util/datetime | |
parent | 57cd0ba1b8c1fb6b71ccd886caab0c1f28fe54f5 (diff) | |
download | ydb-6818ba20a3267db5010f361f1fadea6ce55cfb4c.tar.gz |
Restoring authorship annotation for <akindyakov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/datetime')
-rw-r--r-- | util/datetime/cputimer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/datetime/cputimer.h b/util/datetime/cputimer.h index 7d38d5bdb3..f811c3cd75 100644 --- a/util/datetime/cputimer.h +++ b/util/datetime/cputimer.h @@ -23,7 +23,7 @@ public: TSimpleTimer() { Reset(); } - TDuration Get() const { + TDuration Get() const { return TInstant::Now() - T; } void Reset() { @@ -38,7 +38,7 @@ public: TProfileTimer() { Reset(); } - TDuration Get() const { + TDuration Get() const { return TRusage::Get().Utime - T; } TDuration Step() { |