aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/framework/instruments/WallClockTimer.cpp6
-rw-r--r--tests/framework/instruments/WallClockTimer.h8
2 files changed, 7 insertions, 7 deletions
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<output_timestamps>::id() const
template <bool output_timestamps>
void WallClock<output_timestamps>::start()
{
- _start = std::chrono::high_resolution_clock::now();
+ _start = std::chrono::system_clock::now();
}
template <bool output_timestamps>
void WallClock<output_timestamps>::stop()
{
- _stop = std::chrono::high_resolution_clock::now();
+ _stop = std::chrono::system_clock::now();
}
template <bool output_timestamps>
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<false>;