A timekeeper that accumulate interval of time.
More...
#include <spot/misc/timer.hh>
|
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...
|
|
A timekeeper that accumulate interval of time.
bool spot::timer::is_running |
( |
| ) |
const |
|
inline |
Whether the timer is running.
void spot::timer::start |
( |
| ) |
|
|
inline |
clock_t spot::timer::stime |
( |
| ) |
const |
|
inline |
Return the system time of all accumulated interval.
Any time interval that has been start()ed but not stop()ed will not be accounted for.
void spot::timer::stop |
( |
| ) |
|
|
inline |
Stop a time interval and update the sum of all intervals.
clock_t spot::timer::utime |
( |
| ) |
const |
|
inline |
Return the user time of all accumulated interval.
Any time interval that has been start()ed but not stop()ed will not be accounted for.
The documentation for this class was generated from the following file: