|
open_iA 2025.6
|
Class for simple performance measurements. More...
#include <iAPerformanceHelper.h>
Public Types | |
| using | DurationType = double |
| the time resolution type to use | |
Public Member Functions | |
| iAPerformanceTimer () | |
| Create a performance helper. | |
| ~iAPerformanceTimer () | |
| destructor | |
| DurationType | elapsed () const |
| retrieve the time elapsed since the reference start time | |
| void | start () |
| Sets the reference start time. | |
Static Public Attributes | |
| static const double | DurationSecondFactor = 1000000.0 |
| factor for how many counts are one second Has to match the DurationType! | |
Class for simple performance measurements.
Holds a reference start time and allows to retrieve the time elapsed since that time
| using iAPerformanceTimer::DurationType = double |
the time resolution type to use
| iAPerformanceTimer::iAPerformanceTimer | ( | ) |
Create a performance helper.
Records the start time just as start() does
| iAPerformanceTimer::~iAPerformanceTimer | ( | ) |
destructor
| iAPerformanceTimer::DurationType iAPerformanceTimer::elapsed | ( | ) | const |
retrieve the time elapsed since the reference start time
| void iAPerformanceTimer::start | ( | ) |
Sets the reference start time.
Only needed if measurement should start at a time after construction (as constructor already sets it), or if class is reused to time multiple events
|
static |
factor for how many counts are one second Has to match the DurationType!