#include<iostream>
#include<ctime>//计时函数头文件
using namespace std;
int main()
{
int i = 0;
for (; i <= 10000; i++)
{
cout << i << endl;
}
printf("%d ms", clock());//输出运行所费时间,单位毫秒ms
system("pause");
return 0;
}
#include<iostream>
#include<ctime>//计时函数头文件
using namespace std;
int main()
{
int i = 0;
for (; i <= 10000; i++)
{
cout << i << endl;
}
printf("%d ms", clock());//输出运行所费时间,单位毫秒ms
system("pause");
return 0;
}