#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 |
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.