Hi there,
the following program
/****************************************************/
#include <iostream>
#include
using namespace std;
boost::timer t;
main()
{
t.restart();
for(int i=0; i<5; i++){
usleep(500000);
cout << t.elapsed() << endl
<< t.elapsed_min() << endl
<< t.elapsed_max() << endl;
}
}
/****************************************************/
gives five times the following output, in 0.5 s intervals:
0
1e-06
9.22337e+12
I have tried the timer_test.cpp application (from
http://www.boost.org/libs/timer/index.html). Most of it seems to be working,
but the first messages also say:
timer::elapased_min() reports 1e-06 seconds
timer::elapased_max() reports 9.22337e+12 seconds,
which is 2.56205e+09 hours
After this the output seems to be fine.
So something clearly is wrong. Any ideas ?
This is on an OpenSuSE 10.2 system with a Boost 1.34.0 (with added ASIO
support, 0.38rc3). g++ is 4.1.2 .
Thanks and Best Regards,
Ruediger