open_iA  2020.01
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Member Functions | List of all members
iATimeAdder Class Reference

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. More...

#include <iAPerformanceHelper.h>

Collaboration diagram for iATimeAdder:

Public Member Functions

iAPerformanceTimer::DurationType elapsed () const
 
 iATimeAdder ()
 
void pause ()
 
void resume ()
 

Detailed Description

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";

Constructor & Destructor Documentation

◆ iATimeAdder()

iATimeAdder::iATimeAdder ( )

Member Function Documentation

◆ elapsed()

iAPerformanceTimer::DurationType iATimeAdder::elapsed ( ) const

◆ pause()

void iATimeAdder::pause ( )

◆ resume()

void iATimeAdder::resume ( )

The documentation for this class was generated from the following files: