32#include <itpp/itexports.h>
57 void reset(
double t = 0.0);
65 double get_time()
const;
112 double get_current_time()
const;
146 double get_current_time()
const;
153ITPP_EXPORT
void tic();
159ITPP_EXPORT
double toc();
175ITPP_EXPORT
void pause(
double t = -1);
CPU_Timer()
Create a new timer. Sets the time to zero.
Real_Timer()
Create a new timer. Sets the time to zero.
A virtual base class for timers.
double start_time
The start time of the timer.
virtual ~Timer()
Virtual destructor.
bool running
A bool that indicates if the timer is running or not.
double elapsed_time
The ellapsed time from start to stop.
virtual double get_current_time() const =0
Vitrual function that returns teh current time.
double stop_time
The stop time of the timer.
void pause(double t)
pause
void toc_print()
Prints the elapsed time since last tic()
void tic()
Reset and start timer.
double toc()
Returns the elapsed time since last tic()