diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-12-19 13:39:48 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2022-12-19 13:39:48 +0000 |
commit | 4e4169c32c2788f8e4875355a50115e9c95622ee (patch) | |
tree | 27ba666f8d8eef5ea2df4f20df143a792f81975c /searchcore | |
parent | 7b265f56441a2c6107e01e78082d3f1f26883b0b (diff) |
Simplify implementation of FlushEngine::FlushMeta::getStart().
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/flushengine/flushengine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.h b/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.h index f8036ad4a92..4b15c3503f3 100644 --- a/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.h +++ b/searchcore/src/vespa/searchcore/proton/flushengine/flushengine.h @@ -27,7 +27,7 @@ public: ~FlushMeta(); const vespalib::string & getName() const { return _name; } const vespalib::string& handler_name() const { return _handler_name; } - vespalib::system_time getStart() const { return vespalib::system_clock::now() - std::chrono::duration_cast<vespalib::system_time::duration>(elapsed()); } + vespalib::system_time getStart() const { return vespalib::to_utc(_timer.get_start()); } vespalib::duration elapsed() const { return _timer.elapsed(); } uint32_t getId() const { return _id; } bool operator < (const FlushMeta & rhs) const { return _id < rhs._id; } |