SaDVIO
Classes | Functions
isae::timer Namespace Reference

Classes

class  timer_handle
 Handy way for timing an action. More...
 

Functions

void tic ()
 pushes the current time on the stack More...
 
double silentToc ()
 pops a time from the stack and returns the difference with the current time More...
 
double toc (std::string s="")
 pops a time from the stack and prints the difference with the current time More...
 

Function Documentation

◆ silentToc()

double isae::timer::silentToc ( )

pops a time from the stack and returns the difference with the current time

Returns
delta time (ms)

◆ tic()

void isae::timer::tic ( )

pushes the current time on the stack

◆ toc()

double isae::timer::toc ( std::string  s = "")

pops a time from the stack and prints the difference with the current time

Parameters
stimer message
Returns
delta time (ms)