Code
#include <Windows.h>
#include <iostream>
#include <boost/timer.hpp>
using namespace std;
using namespace boost;
int main()
{
timer t;//构造完成就开始计时
cout << "max exapsed : " << t.elapsed_max() << " s" << endl;
cout << "min exapsed : " << t.elapsed_min() << " s" << endl;
Sleep(1);
cout << "elapsed : " << t.elapsed() << " s" << endl;
system("pause");
}