#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_ |
void spot::timer::start | ( | ) | [inline] |
Start a time interval.
void spot::timer::stop | ( | ) | [inline] |
Stop a time interval and update the sum of all intervals.
clock_t spot::timer::utime | ( | ) | const [inline] |
clock_t spot::timer::stime | ( | ) | const [inline] |
time_info spot::timer::start_ [protected] |
time_info spot::timer::total_ [protected] |