Boost 入门之3 - 测量时间流逝
2016-04-08 11:41
260 查看
#include <Windows.h> #include <iostream> using namespace std; #include <boost/timer.hpp> #include <boost/progress.hpp> using namespace boost; int main(int argc, char* argv[]) { timer t; Sleep(1000); cout << t.elapsed() << endl;//1s t.restart(); Sleep(3000); cout << t.elapsed() << endl;//3s getchar(); return 0; }
相关文章推荐
- boost相关小知识(长期顶置更新)
- C++单元测试:boost.test
- boost asio学习笔记 [1] - 同步通讯
- boost_asio学习笔记[2] - 客户端异步通讯
- boost::flat_map性能测试
- Ubuntu下如何安装boost?
- How to get a boost::shared_ptr from this
- boost 库 enable_shared_from_this 实现原理分析
- boost bind使用指南
- 使用boost进行CRC64计算
- [网络开发]boost::asio简介
- Windows下如何编译使用boost?
- Boost库学习(0)
- Boost库学习(1)log和unittest
- Boost库学习(2)thread 1
- Boost库学习(3)thread 2
- Boost库学习(4)thread 3
- Boost库学习(6)filesystem
- Boost库学习(7)regex
- Boost库学习(8)log