#include <misc/timer.hh>
Collaboration diagram for spot::timer:
Public Member Functions | |
void | start () |
Start a time interval. | |
void | stop () |
Stop a time interval and update the sum of all intervals. | |
clock_t | utime () const |
Return the user time of all accumulated interval. | |
clock_t | stime () const |
Return the system time of all accumulated interval. | |
Protected Attributes | |
time_info | start_ |
time_info | total_ |
|
Start a time interval.
|
|
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. |
|
Stop a time interval and update the sum of all intervals.
|
|
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. |
|
|
|
|