C++程序运行时间

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bengshakalakaka/article/details/82714291
#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<vector>
#include<ctime>
using namespace std;
int main()
{
	clock_t start, finish;
	
	start = clock();
	
	//运行函数
	 
	finish = clock();
	
	cout << finish - start << "/" << CLOCKS_PER_SEC << " (s) " << endl;
	
	system("PAUSE");
	return 0;
}

猜你喜欢

转载自blog.csdn.net/bengshakalakaka/article/details/82714291