Source-highlight Library
|
Records elapsed time. More...
#include <stopwatch.h>
Public Member Functions | |
StopWatch () | |
constructs a StopWatch object by storing the current time (uses clock()) | |
~StopWatch () | |
Upon destruction, prints the elapsed time in seconds, since the construction of this StopWatch. | |
Private Attributes | |
clock_t | start |
Records elapsed time.