#include<iostream>
#include<windows.h>
#include<time.h>
using namespace std;
int main()
{
clock_t start, end;//声明以及初始化
start = clock();
double time;
int i = 0;
for (int j = 0; j <= 500; j++)//测试代码
{
cout << "You are a good man!" << endl;
}
end = clock();
cout << start << endl;//运行结果
cout << end << endl;
time = double(end - start) / CLOCKS_PER_SEC ;
cout << "程序运行时间为" << time << "ms" << endl;
system("pause");
}