记录硬件时间函数

#ifdef _DEBUG LARGE_INTEGER litmp; LONGLONG QPart1,QPart2; double dfMinus, dfFreq, dfTim; QueryPerformanceFrequency(&litmp); dfFreq = (double)litmp.QuadPart; QueryPerformanceCounter(&litmp); QPart1 = litmp.QuadPart; #endif #ifdef _DEBUG QueryPerformanceCounter(&litmp); QPart2 = litmp.QuadPart; dfMinus = (double)(QPart2 - QPart1); dfTim = dfMinus / dfFreq; QPart1 = QPart2; TRACE("/nMove Time is: %f/n",dfTim); #endif

你可能感兴趣的:(记录硬件时间函数)