diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-11-14 22:21:37 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-11-14 22:21:37 +0000 |
commit | 37754e26c8f04eb5a0d130f65e44946726fa5490 (patch) | |
tree | cc5cc48c3e7c26cd4881c93909fb14ef256b9b09 /fastos | |
parent | 52a5a424000cb4a1bcc61e601c6f4a183103e3d1 (diff) |
Use steady clock to ensure monotonically increasing clock.
Diffstat (limited to 'fastos')
-rw-r--r-- | fastos/src/vespa/fastos/timestamp.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fastos/src/vespa/fastos/timestamp.h b/fastos/src/vespa/fastos/timestamp.h index c01f93205c0..fd46d200b52 100644 --- a/fastos/src/vespa/fastos/timestamp.h +++ b/fastos/src/vespa/fastos/timestamp.h @@ -71,9 +71,7 @@ public: void start() { _startTime = this->now(); _stopTime = _startTime; } void stop() { _stopTime = this->now(); } - TimeStamp elapsedAdjusted() const { return this->adjustTick2Sec(elapsed()); } TimeStamp startTime() const { return this->adjustTick2Sec(_startTime); } - TimeStamp stopTime() const { return this->adjustTick2Sec(_stopTime); } TimeStamp elapsed() const { TimeStamp diff(_stopTime - _startTime); |