Lagrange
SilentMultiTimer Class Reference

A timer that keeps track of a total time as well as intervals. More...

#include <lagrange/utils/timing.h>

Public Member Functions

void reset ()
 Starts/restarts the timer.
 
double interval ()
 Returns current interval time (in seconds) and resets interval to now. More...
 
double total ()
 Returns total time. More...
 

Detailed Description

A timer that keeps track of a total time as well as intervals.

Member Function Documentation

◆ interval()

double interval ( )
inline

Returns current interval time (in seconds) and resets interval to now.

Returns
Current interval time.

◆ total()

double total ( )
inline

Returns total time.

Does not reset.

Returns
Total time since the timer was started.

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