diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-05 14:40:17 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-05 18:45:15 +0000 |
commit | 0a208d8a839f14164cd1561e38cb21a270c64380 (patch) | |
tree | 43b5185e77c237d322349edbee03cee30867e6a6 /staging_vespalib/src/tests/benchmark/testbase.cpp | |
parent | e4b328f4ee05b55131420df7f6b5a3685d5dffa5 (diff) |
Replace UTCTimeStamp with std::chrono::system_clock::time_point
Diffstat (limited to 'staging_vespalib/src/tests/benchmark/testbase.cpp')
-rw-r--r-- | staging_vespalib/src/tests/benchmark/testbase.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/staging_vespalib/src/tests/benchmark/testbase.cpp b/staging_vespalib/src/tests/benchmark/testbase.cpp index bad2bdf0546..e3f1434c7d6 100644 --- a/staging_vespalib/src/tests/benchmark/testbase.cpp +++ b/staging_vespalib/src/tests/benchmark/testbase.cpp @@ -1,6 +1,7 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "testbase.h" #include <vespa/fastos/timestamp.h> +#include <vespa/vespalib/util/time.h> #include <cassert> #include <vespa/log/log.h> @@ -165,12 +166,12 @@ size_t ReturnByValueMultiVectorString::onRun() size_t ClockSystem::onRun() { - fastos::UTCTimeStamp start(fastos::ClockSystem::now()); - fastos::UTCTimeStamp end(start); + vespalib::system_time start(vespalib::system_clock::now()); + vespalib::system_time end(start); for (size_t i=0; i < 1000; i++) { - end = fastos::ClockSystem::now(); + end = vespalib::system_clock::now(); } - return (start - end).ns(); + return (start - end).count(); } size_t ClockREALTIME::onRun() |