chrono::ChTimer Class Reference

Description

Chrono wrappers for high-resolution timers.

#include <ChTimer.h>

Inheritance diagram for chrono::ChTimer:

Public Member Functions

void start ()
 Start the timer.
 
void stop ()
 Stop the timer.
 
void reset ()
 Reset the total accumulated time (when repeating multiple start/stop).
 
unsigned long long GetTimeMilliseconds () const
 Return the time in milliseconds. More...
 
unsigned long long GetTimeMicroseconds () const
 Return the time in microseconds. More...
 
unsigned long long GetTimeMillisecondsIntermediate () const
 Return the time in m,illiseconds since start(). More...
 
unsigned long long GetTimeMicrosecondsIntermediate () const
 Return the time in microseconds since start(). More...
 
double GetTimeSeconds () const
 Return the time in seconds. More...
 
double GetTimeSecondsIntermediate () const
 Return the time in seconds since start(). More...
 
double operator() () const
 Get the last timer value, in seconds.
 

Member Function Documentation

◆ GetTimeMicroseconds()

unsigned long long chrono::ChTimer::GetTimeMicroseconds ( ) const
inline

Return the time in microseconds.

Use start()..stop() before calling this.

◆ GetTimeMicrosecondsIntermediate()

unsigned long long chrono::ChTimer::GetTimeMicrosecondsIntermediate ( ) const
inline

Return the time in microseconds since start().

This function does not require a call to stop().

◆ GetTimeMilliseconds()

unsigned long long chrono::ChTimer::GetTimeMilliseconds ( ) const
inline

Return the time in milliseconds.

Use start()..stop() before calling this function.

◆ GetTimeMillisecondsIntermediate()

unsigned long long chrono::ChTimer::GetTimeMillisecondsIntermediate ( ) const
inline

Return the time in m,illiseconds since start().

This function does not require a call to stop().

◆ GetTimeSeconds()

double chrono::ChTimer::GetTimeSeconds ( ) const
inline

Return the time in seconds.

Use start()..stop() before calling this.

◆ GetTimeSecondsIntermediate()

double chrono::ChTimer::GetTimeSecondsIntermediate ( ) const
inline

Return the time in seconds since start().

This function does not require a call to stop().


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono/core/ChTimer.h