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:
  • /cygdrive/d/a/scallywag/source-highlight/source-highlight-3.1.9-1.x86_64/src/source-highlight-3.1.9/lib/srchilite/stopwatch.h
  • /cygdrive/d/a/scallywag/source-highlight/source-highlight-3.1.9-1.x86_64/src/source-highlight-3.1.9/lib/srchilite/stopwatch.cpp