From d1fe4ce1290c32d9ebc4c97d81d469fb7546d682 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Fri, 8 Feb 2019 15:26:24 +0000 Subject: COMPMID-1710 Use system_clock in WallClock On some systems high_resolution_clock can be either system_clock or steady_clock. Use system_clock in order to get system time when using wall clock timestamps. Change-Id: I90e6958ed2ebea07d29c335c7f59a1db91af4ab9 Reviewed-on: https://review.mlplatform.org/652 Reviewed-by: VidhyaSudhan Loganathan Reviewed-by: Pablo Marquez Tested-by: Arm Jenkins --- tests/framework/instruments/WallClockTimer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/framework/instruments/WallClockTimer.h') diff --git a/tests/framework/instruments/WallClockTimer.h b/tests/framework/instruments/WallClockTimer.h index d659ab1a80..fb047aa7e4 100644 --- a/tests/framework/instruments/WallClockTimer.h +++ b/tests/framework/instruments/WallClockTimer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -70,9 +70,9 @@ public: MeasurementsMap measurements() const override; private: - std::chrono::high_resolution_clock::time_point _start{}; - std::chrono::high_resolution_clock::time_point _stop{}; - float _scale_factor{}; + std::chrono::system_clock::time_point _start{}; + std::chrono::system_clock::time_point _stop{}; + float _scale_factor{}; }; using WallClockTimer = WallClock; -- cgit v1.2.1