From ce58a9f8f8504c165ca4527bfd991a4029437cba Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Tue, 31 Oct 2017 17:59:17 +0000 Subject: COMPMID-622 Let the user choose the units for the instruments Change-Id: Ic6ac4cd6df6970593a5e2e6310b6d61951c88898 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93887 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- tests/framework/instruments/WallClockTimer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/framework/instruments/WallClockTimer.cpp') diff --git a/tests/framework/instruments/WallClockTimer.cpp b/tests/framework/instruments/WallClockTimer.cpp index c6384a3ab5..6c69360236 100644 --- a/tests/framework/instruments/WallClockTimer.cpp +++ b/tests/framework/instruments/WallClockTimer.cpp @@ -50,7 +50,7 @@ void WallClockTimer::stop() Instrument::MeasurementsMap WallClockTimer::measurements() const { const auto delta = std::chrono::duration_cast(_stop - _start); - return MeasurementsMap{ { "Wall clock time", Measurement(delta.count(), "us") } }; + return MeasurementsMap{ { "Wall clock time", Measurement(delta.count() / _scale_factor, _unit) } }; } } // namespace framework } // namespace test -- cgit v1.2.1