boost库-timer
来源:互联网 发布:淘宝老廖沉香 编辑:程序博客网 时间:2024/06/06 01:19
#include <iostream>
#include <boost/timer.hpp>
using namespace boost;
using namespace std;
int main()
{
timer t;
cout << "max timespan:" << t.elapsed_max() /3600 << "h" << endl;
cout << "min timespan:" << t.elapsed_min() << "s" << endl;
cout << "now time elapsed:" << t.elapsed() << "s" << endl;
return 0;
#include <boost/timer.hpp>
using namespace boost;
using namespace std;
int main()
{
timer t;
cout << "max timespan:" << t.elapsed_max() /3600 << "h" << endl;
cout << "min timespan:" << t.elapsed_min() << "s" << endl;
cout << "now time elapsed:" << t.elapsed() << "s" << endl;
return 0;
}
#include <boost/progress.hpp>
#include <fstream>
#include <string>
#include <vector>
#include <iterator>
int main()
{
std::vector<std::string> v(100);
std::ofstream fs("test.txt");
boost::progress_display pd(v.size());
std::vector<std::string>::iterator pos;
for(pos=v.begin();pos!=v.end();++pos)
{
fs<<*pos<<std::endl;
++pd;
}
return 0;
}
0 0
- boost. timer库
- Boost库学习----timer
- boost-timer库学习
- boost--timer库
- boost库-timer
- Boost----- timer库
- boost timer库使用
- boost--timer库笔记
- 【Boost】boost::timer库用法与实例
- 【Boost】boost库中timer定时器
- 【Boost】boost::timer库用法与实例
- Boost学习之Timer库
- boost ---- timer
- boost-timer
- boost::timer
- boost.timer
- boost::timer
- boost::timer
- iOS 的框架
- 再也不相信爱情了
- GeoHash核心原理解析
- 九度oj-1374-所有员工年龄排序
- OGRE启动过程详解(OGRE HelloWorld程序原理解析)
- boost库-timer
- Java基础之多线程的理解
- sprintf
- 排序 - 希尔排序
- IOS开发之UICollectionView
- Eclipse中Ctrl+/快捷键功能改变
- DrawCall(一)
- OGRE 1.9 的第一个程序(OGRE HelloWorld程序)
- 1.2深入理解嵌套类和内部类