vc获取程序运行时间
2011-03-02 10:50
302 查看
#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;
}
#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获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- 【VS开发】VC++ 获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- VC获取系统时间、程序运行时间
- VC获取系统时间、程序运行时间
- VC获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- VC获取系统时间、程序运行时间
- VC获取系统时间、程序运行时间
- VC获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- VC获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- VC获取系统时间、程序运行时间(精确到秒,毫秒)
- VC获取系统时间、程序运行时间
- VC获取系统时间、程序运行时间
- VC获取系统时间、程序运行时间
- 获取VC/MFC程序的运行时间
- vc中程序运行时间的获取方法
- VC获取系统时间、程序运行时间
- VC获取系统时间、程序运行时间
- VC获取系统时间、程序运行时间
- VC获取系统时间、程序运行时间(精确到秒,毫秒)
- VC获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法