Boost logo

Boost Users :

From: clemix (clemix007_at_[hidden])
Date: 2008-06-16 10:45:55


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net