#include<iostream>
#include<ctime>
using namespace std;
int main()
{
time_t begin,end;
begin=clock();
//这里加上你的代码
end=clock();
cout<<"runtime: "<<double(end-begin)/CLOCKS_PER_SEC<<endl;
}
vc获取程序运行时间
最新推荐文章于 2022-02-12 15:32:54 发布
799

被折叠的 条评论
为什么被折叠?



