Class for measuring code runtime in cpu time and realtime.
More...
#include <timer.hpp>
|
| Timer () |
| Construct and start timer.
|
|
| ~Timer () |
| Destruct timer.
|
|
void | start (void) |
| Start timer.
|
|
void | stop (void) |
| Stop timer.
|
|
double | get_real_time (void) const |
| Get real time elapsed in seconds.
|
|
double | get_cpu_time (void) const |
| Get cpu time elapsed in seconds.
|
|
|
std::ostream & | operator<< (std::ostream &os, const Timer &t) |
| Print report of elapsed time to stream.
|
|
Class for measuring code runtime in cpu time and realtime.
Construct and start timer.
double Timer::get_cpu_time |
( |
void |
| ) |
const |
Get cpu time elapsed in seconds.
double Timer::get_real_time |
( |
void |
| ) |
const |
Get real time elapsed in seconds.
void Timer::start |
( |
void |
| ) |
|
void Timer::stop |
( |
void |
| ) |
|
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Timer & |
t |
|
) |
| |
|
friend |
Print report of elapsed time to stream.
The documentation for this class was generated from the following file: