摘要:
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... 阅读全文