robotoc
robotoc - efficient ROBOT Optimal Control solvers
Loading...
Searching...
No Matches
robotoc::Timer Class Reference

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...
 

Detailed Description

A timer class to take benchmarks.

Constructor & Destructor Documentation

◆ Timer()

robotoc::Timer::Timer ( )
inline

Default constructor.

◆ ~Timer()

robotoc::Timer::~Timer ( )
default

Default destructor.

Member Function Documentation

◆ ms()

double robotoc::Timer::ms ( ) const
inline

Returns the time duration (milli seconds) from tick() to tock().

◆ ns()

double robotoc::Timer::ns ( ) const
inline

Returns the time duration (nano seconds) from tick() to tock().

◆ s()

double robotoc::Timer::s ( ) const
inline

Returns the time duration (seconds) from tick() to tock().

◆ tick()

void robotoc::Timer::tick ( )
inline

Takes a time clock.

◆ tock()

void robotoc::Timer::tock ( )
inline

Takes a time clock.


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