C++程序運行時間

#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;
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章