Go to the documentation of this file.
32 #include <itpp/itexports.h>
57 void reset(
double t = 0.0);
65 double get_time()
const;
69 virtual double get_current_time()
const = 0;
112 double get_current_time()
const;
146 double get_current_time()
const;
153 ITPP_EXPORT
void tic();
159 ITPP_EXPORT
double toc();
175 ITPP_EXPORT
void pause(
double t = -1);
179 #endif // #ifndef TIMING_H
double start_time
The start time of the timer.
virtual ~Timer()
Virtual destructor.
double toc()
Returns the elapsed time since last tic()
double elapsed_time
The ellapsed time from start to stop.
bool running
A bool that indicates if the timer is running or not.
Real_Timer()
Create a new timer. Sets the time to zero.
void toc_print()
Prints the elapsed time since last tic()
A virtual base class for timers.
void pause(double t)
pause
void tic()
Reset and start timer.
double stop_time
The stop time of the timer.
CPU_Timer()
Create a new timer. Sets the time to zero.
Generated on Mon Apr 25 2022 14:03:04 for IT++ by Doxygen 1.8.17