|
robotoc
robotoc - efficient ROBOT Optimal Control solvers
|
A timer class to take benchmarks. More...
#include <timer.hpp>
Public Member Functions | |
| Timer () | |
| Default constructor. More... | |
| ~Timer ()=default | |
| Default destructor. More... | |
| void | tick () |
| Takes a time clock. More... | |
| void | tock () |
| Takes a time clock. More... | |
| double | s () const |
| Returns the time duration (seconds) from tick() to tock(). More... | |
| double | ms () const |
| Returns the time duration (milli seconds) from tick() to tock(). More... | |
| double | ns () const |
| Returns the time duration (nano seconds) from tick() to tock(). More... | |
A timer class to take benchmarks.
|
inline |
Default constructor.
|
default |
Default destructor.
|
inline |
|
inline |
|
inline |
|
inline |
Takes a time clock.
|
inline |
Takes a time clock.