65,210
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <ctime>
using namespace std;
int main()
{
clock_t start = clock();//开始时间
//运行程序.......
clock_t end= clock();//结束时间
int a =(end-start)/CLK_TCK;//结果为毫秒数
cout<<a<<endl;
return 0;
}