From 0a208d8a839f14164cd1561e38cb21a270c64380 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 5 Dec 2019 14:40:17 +0000 Subject: Replace UTCTimeStamp with std::chrono::system_clock::time_point --- staging_vespalib/src/tests/benchmark/testbase.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'staging_vespalib') 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 +#include #include #include @@ -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() -- cgit v1.2.3