//开始计时
double time0 = static_cast<double>(getTickCount());
.......函数运行........
//计时结束
time0 = ((double)getTickCount() - time0) / getTickFrequency();
cout << "用时:" << time0 << "秒" << endl;
就是记不住!!!