Source-highlight Library
srchilite::StopWatch Class Reference

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
 

Detailed Description

Records elapsed time.


The documentation for this class was generated from the following files: