TimeCounter.h File Reference

Utility class to measure execution time. More...

#include <stdio.h>

Classes

class  TimeCounter
 Class that reports it's lifetime when destructed. More...

Defines

#define TS_START(id, name)   TimeCounter* TC##id = new TimeCounter(name)
#define TS_STOP(id)   delete TC##id


Detailed Description

Utility class to measure execution time.

Prints time elapsed from creation to destruction when destructed using OutputDebugString. Use as automatic object if scope is clearly defined or using TC_START/TC_STOP macros when adding additional scope would be inconvenient.


Generated on Wed May 15 22:42:22 2013 for miniscope v3 by  doxygen 1.5.9
Tomasz Ostrowski