DWORD begin, end;begin = GetTickCount();//你的程序end = GetTickCount();DWORD timeUse = end - begin; //执行所用的毫秒数
ok