12月9日,timer库

timer库,简单的计时器,可以计算运行时间
代码:

#include<iostream>
#include<boost/timer.hpp>
using namespace std;
int main()
{
    boost::timer t;
    cout<<t.elapsed_max()<<endl;
    cout<<t.elapsed_min()<<endl;
    cout<<t.elapsed()<<endl;
}

输出:
输出结果

posted on 2015-12-09 22:23    阅读(122)  评论(0编辑  收藏  举报

导航