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 | 6af118f89114e747935313fbe81e64b6ae64ab6c (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb /util/datetime | |
parent | 6818ba20a3267db5010f361f1fadea6ce55cfb4c (diff) | |
download | ydb-6af118f89114e747935313fbe81e64b6ae64ab6c.tar.gz |
Restoring authorship annotation for <akindyakov@yandex-team.ru>. Commit 2 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 f811c3cd75..7d38d5bdb3 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() { |