[TIMER] Always getting time elapsed == 0

Hi,
boost: 1.35
gcc: gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
source: timer.cpp
=================
#include

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 16 June 2008 10:45 am, clemix wrote:
Can someone help me? Or is it my gcc version? Or is there an other nice to use os independent timer in boost?
It's because boost::timer isn't os independent. It uses std::clock, which returns CPU time on Linux, as opposed to returning wall time (which seems to be what you want) on Windows. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIVoyY5vihyNWuA4URAjcpAKDpQtJV+wIL9zKrVbmBT9pXigwGwACcDmuG X/wgRKjGIQgpqsDIJmirdj0= =GE9t -----END PGP SIGNATURE-----
participants (2)
-
clemix
-
Frank Mori Hess