标签:div ble 结束时间 运行时 running ... include ++ cloc
#include<time.h> //获取时间头文件
//-------------------------------------- clock_t start_time=clock(); //开始时间 { //...... } clock_t end_time=clock(); //结束时间 //-------------------------------------- cout<< "Running time is: " <<static_cast<double>(end_time - start_time)/CLOCKS_PER_SEC <<"(s)"<<endl; //输出运行时间
标签:div ble 结束时间 运行时 running ... include ++ cloc
原文地址:http://www.cnblogs.com/wqpkita/p/6849323.html