/*********************************************************************************************** * CProfileManager::Get_Time_Since_Reset -- returns the elapsed time since last reset * *=============================================================================================*/ float CProfileManager::Get_Time_Since_Reset( void ) { unsigned long int time; Profile_Get_Ticks(&time); time -= ResetTime; return (float)time / Profile_Get_Tick_Rate(); }
/*********************************************************************************************** * CProfileManager::Get_Time_Since_Reset -- returns the elapsed time since last reset * *=============================================================================================*/ float CProfileManager::Get_Time_Since_Reset( void ) { dtEntity::Timer_t time; Profile_Get_Ticks(&time); time -= ResetTime; return (float)time / Profile_Get_Tick_Rate(); }
bool CProfileNode::Return( void ) { if ( --RecursionCounter == 0 && TotalCalls != 0 ) { unsigned long int time; Profile_Get_Ticks(&time); time-=StartTime; TotalTime += (float)time / Profile_Get_Tick_Rate(); } return ( RecursionCounter == 0 ); }
bool CProfileNode::Return( void ) { if ( --RecursionCounter == 0 && TotalCalls != 0 ) { __int64 time; Profile_Get_Ticks(&time); time-=StartTime; float fTime = (float)time / Profile_Get_Tick_Rate(); TotalTime += fTime; if(fTime > MaxTime)MaxTime = fTime; if(fTime < MinTime) { MinTime = fTime; //char sz[256]; //sprintf(sz,"%f\n",MinTime); //OutputDebugString(sz); } } return ( RecursionCounter == 0 ); }