spot
1.2.4
|
A timekeeper that accumulate interval of time. More...
#include <misc/timer.hh>
Public Member Functions | |
void | start () |
Start a time interval. More... | |
void | stop () |
Stop a time interval and update the sum of all intervals. More... | |
clock_t | utime () const |
Return the user time of all accumulated interval. More... | |
clock_t | stime () const |
Return the system time of all accumulated interval. More... | |
bool | is_running () const |
Whether the timer is running. More... | |
Protected Attributes | |
time_info | start_ |
time_info | total_ |
bool | running |
A timekeeper that accumulate interval of time.
|
inline |
Whether the timer is running.
|
inline |
Start a time interval.
|
inline |
|
inline |
Stop a time interval and update the sum of all intervals.
|
inline |