1.3.49
 
Loading...
Searching...
No Matches
helios::Timer Struct Reference

MATLAB-style timer. Call tic() to start timer, call toc() to stop timer and print duration. More...

#include <global.h>

Public Member Functions

void tic ()
 Start timer.
 
double toc () const
 Stop timer and print elapsed time.
 
double toc (const char *message) const
 Stop timer and print elapsed time and a user-defined message.
 

Detailed Description

MATLAB-style timer. Call tic() to start timer, call toc() to stop timer and print duration.

Definition at line 735 of file global.h.

Constructor & Destructor Documentation

◆ Timer()

helios::Timer::Timer ( )
inline

Definition at line 737 of file global.h.

Member Function Documentation

◆ tic()

void helios::Timer::tic ( )
inline

Start timer.

Definition at line 742 of file global.h.

◆ toc() [1/2]

double helios::Timer::toc ( ) const
inline

Stop timer and print elapsed time.

Definition at line 748 of file global.h.

◆ toc() [2/2]

double helios::Timer::toc ( const char *  message) const
inline

Stop timer and print elapsed time and a user-defined message.

Parameters
[in]messageMessage to print with elapsed time
Note
the timer print message can be turned off by passing the message argument "mute"

Definition at line 757 of file global.h.


The documentation for this struct was generated from the following file: