01 2009 档案
winCE的CPU空闲率计算
摘要:dwStartTick = GetTickCount();dwIdleSt = GetIdleTime();// Insert a call to the Sleep(sleep_time) function to allow idle time// to accrue. An example of an appropriate sleep time is 1000 ms.dwStopTick =...
阅读全文
性能测试时间的计算
摘要:int main(){LARGE_INTEGER m_nFreq;LARGE_INTEGER m_nBeginTime;LARGE_INTEGER nEndTime;QueryPerformanceFrequency(&m_nFreq); // 获取时钟周期QueryPerformanceCounter(&m_nBeginTime); // 获取时钟计数Sleep(100);Que...
阅读全文
浙公网安备 33010602011771号