![]() |
open_iA
2020.01
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Class for simple performance measurements. More...
#include <iAPerformanceHelper.h>
Public Types | |
| typedef double | DurationType |
| the time resolution type to use More... | |
Public Member Functions | |
| DurationType | elapsed () const |
| retrieve the time elapsed since the reference start time More... | |
| iAPerformanceTimer () | |
| Create a performance helper. More... | |
| void | start () |
| Sets the reference start time. More... | |
| ~iAPerformanceTimer () | |
| destructor More... | |
Static Public Attributes | |
| static const double | DurationSecondFactor = 1000000.0 |
| factor for how many counts are one second Has to match the DurationType! More... | |
Class for simple performance measurements.
Holds a reference start time and allows to retrieve the time elapsed since that time
| typedef double iAPerformanceTimer::DurationType |
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!
1.8.16