|
MoochoPack: Miscellaneous Utilities for MOOCHO
Version of the Day
|
Simple stopwatch object. More...
#include <StopWatchPack_stopwatch.hpp>
Public Member Functions | |
| stopwatch () | |
| Initializes of not running. | |
| bool | is_running () const |
Returns true if this is currently timming. | |
| void | start () |
| Starts timing if it has already not been started. | |
| double | stop () |
| Stops timing and returns the time (sec.) since start() was called. | |
| void | reset () |
| Stops and resets the clock if it is running. | |
| double | read () |
| Reads the elapsed time (sec.) and leaves the clock running. | |
Simple stopwatch object.
Definition at line 59 of file StopWatchPack_stopwatch.hpp.
| StopWatchPack::stopwatch::stopwatch | ( | ) | [inline] |
Initializes of not running.
Definition at line 63 of file StopWatchPack_stopwatch.hpp.
| bool StopWatchPack::stopwatch::is_running | ( | ) | const [inline] |
Returns true if this is currently timming.
Definition at line 67 of file StopWatchPack_stopwatch.hpp.
| void StopWatchPack::stopwatch::start | ( | ) | [inline] |
Starts timing if it has already not been started.
Definition at line 72 of file StopWatchPack_stopwatch.hpp.
| double StopWatchPack::stopwatch::stop | ( | ) | [inline] |
Stops timing and returns the time (sec.) since start() was called.
Definition at line 80 of file StopWatchPack_stopwatch.hpp.
| void StopWatchPack::stopwatch::reset | ( | ) | [inline] |
Stops and resets the clock if it is running.
Definition at line 90 of file StopWatchPack_stopwatch.hpp.
| double StopWatchPack::stopwatch::read | ( | ) | [inline] |
Reads the elapsed time (sec.) and leaves the clock running.
Definition at line 97 of file StopWatchPack_stopwatch.hpp.
1.7.6.1