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.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/framework/instruments/WallClockTimer.cpp') diff --git a/tests/framework/instruments/WallClockTimer.cpp b/tests/framework/instruments/WallClockTimer.cpp index b5dc864a40..0e21ac71fb 100644 --- a/tests/framework/instruments/WallClockTimer.cpp +++ b/tests/framework/instruments/WallClockTimer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -48,13 +48,13 @@ std::string WallClock::id() const template void WallClock::start() { - _start = std::chrono::high_resolution_clock::now(); + _start = std::chrono::system_clock::now(); } template void WallClock::stop() { - _stop = std::chrono::high_resolution_clock::now(); + _stop = std::chrono::system_clock::now(); } template -- cgit v1.2.1