MATLAB-style timer. Call tic() to start timer, call toc() to stop timer and print duration.
More...
#include <global.h>
|
| 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.
|
| |
MATLAB-style timer. Call tic() to start timer, call toc() to stop timer and print duration.
Definition at line 707 of file global.h.
◆ Timer()
◆ tic()
| void helios::Timer::tic |
( |
| ) |
|
|
inline |
◆ toc() [1/2]
| double helios::Timer::toc |
( |
| ) |
const |
|
inline |
Stop timer and print elapsed time.
Definition at line 720 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] | message | Message to print with elapsed time |
- Note
- the timer print message can be turned off by passing the message argument "mute"
Definition at line 729 of file global.h.
The documentation for this struct was generated from the following file: