摘要: 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 =... 阅读全文
posted @ 2009-01-09 10:08 discboy 阅读(384) 评论(0) 推荐(0) 编辑
摘要: int main(){LARGE_INTEGER m_nFreq;LARGE_INTEGER m_nBeginTime;LARGE_INTEGER nEndTime;QueryPerformanceFrequency(&m_nFreq); // 获取时钟周期QueryPerformanceCounter(&m_nBeginTime); // 获取时钟计数Sleep(100);Que... 阅读全文
posted @ 2009-01-09 10:06 discboy 阅读(238) 评论(0) 推荐(0) 编辑