aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-12-19 13:39:48 +0000
committerGeir Storli <geirst@yahooinc.com>2022-12-19 13:39:48 +0000
commit4e4169c32c2788f8e4875355a50115e9c95622ee (patch)
tree27ba666f8d8eef5ea2df4f20df143a792f81975c /vespalib
parent7b265f56441a2c6107e01e78082d3f1f26883b0b (diff)
Simplify implementation of FlushEngine::FlushMeta::getStart().
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/time.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/util/time.h b/vespalib/src/vespa/vespalib/util/time.h
index 783831b5171..2355b269fa5 100644
--- a/vespalib/src/vespa/vespalib/util/time.h
+++ b/vespalib/src/vespa/vespalib/util/time.h
@@ -84,6 +84,7 @@ private:
public:
Timer() : _start(steady_clock::now()) {}
~Timer();
+ steady_time get_start() const { return _start; }
duration elapsed() const { return (steady_clock::now() - _start); }
static void waitAtLeast(duration dur, bool busyWait);
};