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

Class for simple performance measurements. More...

#include <iAPerformanceHelper.h>

Collaboration diagram for iAPerformanceTimer:

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

Detailed Description

Class for simple performance measurements.

Holds a reference start time and allows to retrieve the time elapsed since that time

Member Typedef Documentation

◆ DurationType

the time resolution type to use

Constructor & Destructor Documentation

◆ iAPerformanceTimer()

iAPerformanceTimer::iAPerformanceTimer ( )

Create a performance helper.

Records the start time just as start() does

◆ ~iAPerformanceTimer()

iAPerformanceTimer::~iAPerformanceTimer ( )

destructor

Member Function Documentation

◆ elapsed()

iAPerformanceTimer::DurationType iAPerformanceTimer::elapsed ( ) const

retrieve the time elapsed since the reference start time

◆ start()

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

Member Data Documentation

◆ DurationSecondFactor

const double iAPerformanceTimer::DurationSecondFactor = 1000000.0
static

factor for how many counts are one second Has to match the DurationType!


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