Definition at line 62 of file stopwatch.h.
OSB_LIB::Stopwatch::Stopwatch | ( | ) |
Default constructor.
void OSB_LIB::Stopwatch::read | ( | Interval * | ) | const |
Read a (stopped) stopwatch.
void OSB_LIB::Stopwatch::reset | ( | ) |
Reset a stopwatch.
void OSB_LIB::Stopwatch::start | ( | ) | [inline] |
Start a stopwatch.
Definition at line 142 of file stopwatch.h.
References OSB_LIB::Stopwatch::Sws::cstime_, OSB_LIB::Stopwatch::Sws::cutime_, OSB_LIB::Stopwatch::Sws::rtime_, run_, OSB_LIB::Stopwatch::Sws::stime_, tbuf_, and OSB_LIB::Stopwatch::Sws::utime_.
void OSB_LIB::Stopwatch::stop | ( | ) | [inline] |
Stop a stopwatch.
Definition at line 153 of file stopwatch.h.
References accu_, cnt_, OSB_LIB::Stopwatch::Sws::cstime_, OSB_LIB::Stopwatch::Sws::cutime_, OSB_LIB::Stopwatch::Sws::rtime_, run_, OSB_LIB::Stopwatch::Sws::stime_, tbuf_, and OSB_LIB::Stopwatch::Sws::utime_.
Sws OSB_LIB::Stopwatch::accu_ [private] |
clock_t OSB_LIB::Stopwatch::clk_tck_ [static, private] |
long OSB_LIB::Stopwatch::cnt_ [private] |
Number of calls to stop the watch.
Definition at line 127 of file stopwatch.h.
Referenced by stop().
Sws OSB_LIB::Stopwatch::run_ [private] |
struct tms OSB_LIB::Stopwatch::tbuf_ [private] |