double ProfileInstance::getTotalTimeMicroseconds() { if (mRunning) { stopTimer(); startTimer(); } double result; PROF_CONVERT_TO_MICROS(mElapsedTime, result); return result; }
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; }