示例#1
0
double
ProfileInstance::getTotalTimeMicroseconds()
{
  if (mRunning)
  {
    stopTimer();
    startTimer();
  }
  double result;
  PROF_CONVERT_TO_MICROS(mElapsedTime, result);
  return result;
}
示例#2
0
double 
ProfileInstance::getTotalTimeMicroseconds()
{
	UINT64 totalTime = mElapsedTime;
	if (mRunning) {
		UINT64 currentTime;
		PROF_GET_TIME(currentTime);
		totalTime += currentTime - mStartTime;
	}
	double result;
	PROF_CONVERT_TO_MICROS(totalTime,result);
	return result;
}