Hermes
Loading...
Searching...
No Matches
hermes::Timer Class Reference

Helper class to measure time. More...

#include <timer.h>

Public Member Functions

 Timer ()
 default constructor.
 
void tick ()
 tick
 
double tack ()
 get
 
double tackTick ()
 get same as calling tack first and then tick
 

Detailed Description

Helper class to measure time.

Constructor & Destructor Documentation

◆ Timer()

hermes::Timer::Timer ( )
inline

default constructor.

Note
Starts the timer.

Member Function Documentation

◆ tack()

double hermes::Timer::tack ( )
inline

get

Returns
elapsed time since last call to tick in milliseconds

◆ tackTick()

double hermes::Timer::tackTick ( )
inline

get same as calling tack first and then tick

Returns
elapsed time since last call to tick

◆ tick()

void hermes::Timer::tick ( )
inline

tick

Note
mark current time

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