#include <lab4_vit.H>
Public Member Functions | |
| Timer (bool doStart=false) | |
Ctor; if doStart is true, starts timer. | |
| bool | is_on () const |
| Returns whether timer is currently on. | |
| void | start () |
| Starts timer. | |
| double | stop () |
| Stops timer. | |
| double | get_cum_secs () const |
| Returns cumulative seconds timer has been on so far. | |
| Timer::Timer | ( | bool | doStart = false |
) | [inline] |
Ctor; if doStart is true, starts timer.
| bool Timer::is_on | ( | ) | const [inline] |
Returns whether timer is currently on.
| void Timer::start | ( | ) |
Starts timer.
| double Timer::stop | ( | ) |
Stops timer.
Returns cumulative time on so far.
| double Timer::get_cum_secs | ( | ) | const [inline] |
Returns cumulative seconds timer has been on so far.
If timer currently on, doesn't include time since last time was started.
1.5.5