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. More... | |
bool | is_running () const |
Returns true if this is currently timming. More... | |
void | start () |
Starts timing if it has already not been started. More... | |
double | stop () |
Stops timing and returns the time (sec.) since start() was called. More... | |
void | reset () |
Stops and resets the clock if it is running. More... | |
double | read () |
Reads the elapsed time (sec.) and leaves the clock running. More... | |
Simple stopwatch object.
Definition at line 59 of file StopWatchPack_stopwatch.hpp.
|
inline |
Initializes of not running.
Definition at line 63 of file StopWatchPack_stopwatch.hpp.
|
inline |
Returns true if this
is currently timming.
Definition at line 67 of file StopWatchPack_stopwatch.hpp.
|
inline |
Starts timing if it has already not been started.
Definition at line 72 of file StopWatchPack_stopwatch.hpp.
|
inline |
Stops timing and returns the time (sec.) since start() was called.
Definition at line 80 of file StopWatchPack_stopwatch.hpp.
|
inline |
Stops and resets the clock if it is running.
Definition at line 90 of file StopWatchPack_stopwatch.hpp.
|
inline |
Reads the elapsed time (sec.) and leaves the clock running.
Definition at line 97 of file StopWatchPack_stopwatch.hpp.