10 2011 档案
摘要:这个是windows里面常用来计算程序运行时间的函数;DWORD dwStart = GetTickCount();//这里运行你的程序代码DWORD dwEnd = GetTickCount();则(dwEnd-dwStart)就是你的程序运行时间, 以毫秒为单位这个函数只精确到55ms,1个tick就是55ms。#include <iostream>#include <windows.h>using namespace std;int main(int argc, char* argv[]){DWORD start, end;start = GetTickCount
阅读全文

浙公网安备 33010602011771号