#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;
}