24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_WALL_CLOCK_TIMER
25 #define ARM_COMPUTE_TEST_WALL_CLOCK_TIMER
38 template <
bool output_timestamps>
55 _scale_factor = 1000.f;
59 _scale_factor = 1000000.f;
67 std::string
id()
const override;
68 void start()
override;
73 #if defined(BARE_METAL)
76 #else // !defined(BARE_METAL)
77 std::chrono::system_clock::time_point _start {};
78 std::chrono::system_clock::time_point _stop{};
79 #endif // defined(BARE_METAL)
80 float _scale_factor {};
WallClock(ScaleFactor scale_factor)
Construct a Wall clock timer.
void start() override
Start measuring.
std::string id() const override
Identifier for the instrument.
#define ARM_COMPUTE_ERROR(msg)
Print the given message then throw an std::runtime_error.
void stop() override
Stop measuring.
Interface for classes that can be used to measure performance.
Copyright (c) 2017-2024 Arm Limited.
Implementation of an instrument to measure elapsed wall-clock time in milliseconds.
MeasurementsMap measurements() const override
Return the latest measurements.
std::map< std::string, Measurement > MeasurementsMap
Map of measurements.