//get time
#include <iostream>
#include <ctime>
using namespace std;
int main(){
clock_t start = clock();
//This is your code
clock_t ends = clock();
cout << "Running Time : " << (double)(ends - start)/ CLOCKS_PER_SEC << endl;
}
判断程序运行时间
猜你喜欢
转载自www.cnblogs.com/tyner/p/11738085.html
今日推荐
周排行