Win32中精确计时器(微秒级)
摘要:
#pragma onceclass StopWatch{private: int _freq; LARGE_INTEGER _begin; LARGE_INTEGER _end;public: float costTime; //用时,*1000000 = 微秒, 1秒=1000000 StopWatch(void) { LARGE_INTEGER tmp; QueryPerformanceFrequency(&tmp); _freq = tmp.QuadPart; costTime = 0; } ~StopWatch(void) { } void Start(... 阅读全文
posted @ 2009-03-25 09:10 chuncn 阅读(5152) 评论(0) 推荐(0) 编辑