open_iA 2024.9
Loading...
Searching...
No Matches
iAPerformanceTimer Class Reference

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!
 

Detailed Description

Class for simple performance measurements.

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

Deprecated
use QElapsedTimer instead

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: