21.02
|
Implementation of an instrument to measure elapsed wall-clock time in milliseconds. More...
#include <WallClockTimer.h>
Public Member Functions | |
WallClock (ScaleFactor scale_factor) | |
Construct a Wall clock timer. More... | |
std::string | id () const override |
Identifier for the instrument. More... | |
void | start () override |
Start measuring. More... | |
void | stop () override |
Stop measuring. More... | |
MeasurementsMap | measurements () const override |
Return the latest measurements. More... | |
Public Member Functions inherited from Instrument | |
Instrument ()=default | |
Default constructor. More... | |
Instrument (const Instrument &)=default | |
Allow instances of this class to be copy constructed. More... | |
Instrument (Instrument &&)=default | |
Allow instances of this class to be move constructed. More... | |
Instrument & | operator= (const Instrument &)=default |
Allow instances of this class to be copied. More... | |
Instrument & | operator= (Instrument &&)=default |
Allow instances of this class to be moved. More... | |
virtual | ~Instrument ()=default |
Default destructor. More... | |
virtual void | test_start () |
Start of the test. More... | |
virtual void | test_stop () |
End of the test. More... | |
virtual MeasurementsMap | test_measurements () const |
Return the latest test measurements. More... | |
Additional Inherited Members | |
Public Types inherited from Instrument | |
using | MeasurementsMap = std::map< std::string, Measurement > |
Map of measurements. More... | |
Static Public Member Functions inherited from Instrument | |
template<typename T , ScaleFactor scale> | |
static std::unique_ptr< Instrument > | make_instrument () |
Helper function to create an instrument of the given type. More... | |
Implementation of an instrument to measure elapsed wall-clock time in milliseconds.
Definition at line 39 of file WallClockTimer.h.
|
inline |
Construct a Wall clock timer.
[in] | scale_factor | Measurement scale factor. |
Definition at line 46 of file WallClockTimer.h.
References ARM_COMPUTE_ERROR, WallClock< output_timestamps >::id(), WallClock< output_timestamps >::measurements(), arm_compute::test::framework::NONE, WallClock< output_timestamps >::start(), WallClock< output_timestamps >::stop(), arm_compute::test::framework::TIME_MS, and arm_compute::test::framework::TIME_S.
|
overridevirtual |
Identifier for the instrument.
Implements Instrument.
Definition at line 36 of file WallClockTimer.cpp.
Referenced by WallClock< output_timestamps >::WallClock().
|
overridevirtual |
Return the latest measurements.
Reimplemented from Instrument.
Definition at line 61 of file WallClockTimer.cpp.
Referenced by WallClock< output_timestamps >::WallClock().
|
overridevirtual |
Start measuring.
Called just before the run of the test starts
Reimplemented from Instrument.
Definition at line 49 of file WallClockTimer.cpp.
Referenced by WallClock< output_timestamps >::WallClock().
|
overridevirtual |
Stop measuring.
Called just after the run of the test ends
Reimplemented from Instrument.
Definition at line 55 of file WallClockTimer.cpp.
Referenced by WallClock< output_timestamps >::WallClock().