|
Ensign
Low-rank framework for multi-core CPUs and GPUs
|
This timer class measures the elapsed time between two events. More...
#include <timer.hpp>
Public Member Functions | |
| timer () | |
| void | reset () |
| void | start () |
| double | stop () |
| double | total () |
| double | average () |
| double | deviation () |
| unsigned | count () |
Public Attributes | |
| timespec | t_start |
| bool | running |
| double | elapsed |
| unsigned | counter |
| double | elapsed_sq |
This timer class measures the elapsed time between two events.
Timers can be started and stopped repeatedly. The total time as well as the average time between two events can be queried using the total() and average() methods, respectively.
| Ensign::timer::timer | ( | ) |
| double Ensign::timer::average | ( | ) |
| unsigned Ensign::timer::count | ( | ) |
| double Ensign::timer::deviation | ( | ) |
| void Ensign::timer::reset | ( | ) |
| void Ensign::timer::start | ( | ) |
| double Ensign::timer::stop | ( | ) |
| double Ensign::timer::total | ( | ) |