![]()
Timer
Description: A nice little profiling utility
Source file: …\genesis3d\OpenSource\Source\timer.h
Functions:
Start, Stop viewMacros:
viewTutorial:
viewChanges for Genesis3D v1.6: None
![]()
extern FILE * timerFP;
extern
int timerCount;extern double time_Master;
Return to Contents
![]()
#ifdef DO_TIMER
#else
#endif
Return to Contents
![]()
//example usage:
TIMER_VARS(test1);
TIMER_VARS(test2);
int
main(int argc, char *argv[])
{
int
i,j;
timerFP = stdout;
TIMER_START();
TIMER_P(test1);
for(i=0;i<1000;i++)
{
TIMER_P(test2);
j = 99/(i+1);
TIMER_Q(test2);
}
TIMER_Q(test1);
TIMER_COUNT();
TIMER_STOP();
TIMER_REPORT(test2);
TIMER_REPORT(test1);
return 0;
}
Return to Contents
![]()
Functions:
![]()
Return to Contents
![]()
Return to Contents
![]()