标签:image int com bsp 适合 clu 时间段 计时 col
#include <iostream>
#include <boost/timer.hpp> //timer的头文件
using namespace boost; //打开boost名字空间
int main(int argc, char** argv)
{
timer t; //定义一个计时器对象,并开始计时
/*可度量的最大时间,以小时为单位*/
std::cout << "max timespan:" << t.elapsed_max() / 3600 << "h" << std::endl;
/*可度量的最大时间,以小时为单位*/
std::cout << "min timespan:" << t.elapsed_min() << std::endl;
/*输出已经流逝的时间*/
std::cout << "now time elapsed:" << t.elapsed() << "s" << std::endl;
return 0;
}

标签:image int com bsp 适合 clu 时间段 计时 col
原文地址:https://www.cnblogs.com/dilex/p/10562334.html