47 namespace StopWatchPack {
101 last_time_ = curr_time;
void reset()
Stops and resets the clock if it is running.
void start()
Starts timing if it has already not been started.
stopwatch()
Initializes of not running.
bool is_running() const
Returns true if this is currently timming.
double stop()
Stops timing and returns the time (sec.) since start() was called.
double read()
Reads the elapsed time (sec.) and leaves the clock running.