
16 Jun
2008
16 Jun
'08
8:45 a.m.
Hi, boost: 1.35 gcc: gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) source: timer.cpp ================= #include <boost/progress.hpp> int main() { boost::progress_timer t; // start timing usleep(5000000); // do something ... return 0; } compile: ======== g++ timer.cpp -o timer -I /opt/boost/include/boost-1_35/ run: ==== ./timer 0.00 s <--- This is always 0 but has to be 5.xxxxx Can someone help me? Or is it my gcc version? Or is there an other nice to use os independent timer in boost? thx clemix