SaDVIO
Public Member Functions | List of all members
isae::timer::timer_handle Class Reference

Handy way for timing an action. More...

#include <timer.h>

Public Member Functions

 timer_handle (std::string name)
 starts the timer More...
 
double toc ()
 stops the timer More...
 
 ~timer_handle ()
 

Detailed Description

Handy way for timing an action.

Author
Adrien Debord

Calls tic() on creation and toc() on destruction

Constructor & Destructor Documentation

◆ timer_handle()

isae::timer::timer_handle::timer_handle ( std::string  name)
inline

starts the timer

Parameters
nametimer message

◆ ~timer_handle()

isae::timer::timer_handle::~timer_handle ( )
inline

Member Function Documentation

◆ toc()

double isae::timer::timer_handle::toc ( )
inline

stops the timer

Returns
delta time (ms)

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