Timer_Macros

Macros used in the timer system.

AUTO_PROFILE_SECTION Macro
C++
#define AUTO_PROFILE_SECTION(pITimer, g_fTimer) CITimerAutoProfiler<double> __section_auto_profiler(pITimer, g_fTimer)
File

ITimer.h

Description

Include this string AUTO_PROFILE_SECTION(pITimer, g_fTimer) for the section of code where the profiler timer must be turned on and off. The profiler timer is just some global or static float or double value that accumulates the time (in seconds) spent in the given block of code. pITimer is a pointer to the ITimer interface, g_fTimer is the global accumulator.