摘要: 转自:http://apps.hi.baidu.com/share/detail/157085261这个是windows里面常用来计算程序运行时间的函数;DWORD dwStart = GetTickCount();//这里运行你的程序代码DWORD dwEnd = GetTickCount();则(dwEnd-dwStart)就是你的程序运行时间, 以毫秒为单位这个函数只精确到55ms,1个tick就是55ms。 1 #include <iostream> 2 #include <windows.h> 3 using namespace std; 4 int main 阅读全文
posted @ 2011-05-22 17:02 CoderZhuang 阅读(935) 评论(0) 推荐(0) 编辑