|
EvolvingObjects
|
Timer allowing to measure time between a start point and a stop point. More...
#include <eoTimer.h>
Public Member Functions | |
| eoTimer () | |
| Default ctor. | |
| void | restart () |
| Restarts all the timers and launch the measure. | |
| long int | usertime () |
| Measures the user time spent since the last restart(). | |
| long int | systime () |
| Measures the system time spent since the last restart(). | |
| double | wallclock () |
| Measures the wallclock time spent since the last restart(). | |
Protected Attributes | |
| struct rusage | _start |
| long int | uuremainder |
| long int | usremainder |
| time_t | wc_start |
Timer allowing to measure time between a start point and a stop point.
This timer allows the user to measure user time, system time and wallclock time between two points. Basically, user time is time spent in developer code ; system time is time spent during the IO wait and system calls ; wallclock is the difference of time we could observe by measuring time with a watch.
| eoTimer::eoTimer | ( | ) | [inline] |
| long int eoTimer::usertime | ( | ) | [inline] |
Measures the user time spent since the last restart().
If the number of elapsed seconds is zero, the spent milliseconds are added to a remainder. If the remainder exceeds one second, it is added to the number of elapsed seconds.
Definition at line 82 of file eoTimer.h.
Referenced by eoTimerStat::stop().
| long int eoTimer::systime | ( | ) | [inline] |
Measures the system time spent since the last restart().
If the number of elapsed seconds is zero, the spent milliseconds are added to a remainder. If the remainder exceeds one second, it is added to the number of elapsed seconds.
Definition at line 115 of file eoTimer.h.
Referenced by eoTimerStat::stop().
| double eoTimer::wallclock | ( | ) | [inline] |
Measures the wallclock time spent since the last restart().
Definition at line 144 of file eoTimer.h.
Referenced by eoTimerStat::stop().