|
open_iA 2025.6
|
Class for adding up intervals of time. More...
#include <iAPerformanceHelper.h>
Public Member Functions | |
| iATimeAdder () | |
| iAPerformanceTimer::DurationType | elapsed () const |
| void | pause () |
| void | resume () |
Class for adding up intervals of time.
one example use case is if you have a long running procedure with many steps, but only want to measure the contribution of some of the steps; e.g.: do { operationsToMeasure (...) ... some other operations ... } Then you would write: iATimeAdder timer; do { timer.resume(); operationsToMeasure (...) timer.pause(); ... some other operations ... } std::cout << "Elapsed: " << timer.elapsed() << " seconds";
| iATimeAdder::iATimeAdder | ( | ) |
| iAPerformanceTimer::DurationType iATimeAdder::elapsed | ( | ) | const |
| void iATimeAdder::pause | ( | ) |
| void iATimeAdder::resume | ( | ) |