Tools.h++ Manual

21-192 104011 Tandem Computers Incorporated
21
Program output:
5.054945
Public constructor
RWTimer();
Constructs a new timer. The timer will not start running until
start()
is
called.
double elapsedTime() const;
Returns the amount of (CPU) time that has accumulated while the timer was in
the running state.
void reset();
Resets (and stops) the timer.
void start();
Puts the timer in the "running" state. Time accumulates while in this state.
void stop();
Puts the timer in the "stopped" state. Time will not accumulate while in this
state.