On Tue, 11 Dec 2007 19:37:56 +0100, Simon Pickles
Yes, sleep is in seconds. I can confirm that through direct experimentation :)
Another forum helped and suggested I use gettimeofday. This works great, but doesn't shed any light on the zeros provided by boost::timer!
Linux user #458601 - http://counter.li.org.
Hughes, James wrote:
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Benoît Dagon Sent: 11 December 2007 16:25 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Boost::Timer problem
Hi,
boost::timer::elapsed() return a time in second. If you wait only 10 ms second you'll not see anything. Try with sleep(10000)...
Cheers ~Benoît
Isn't posix sleep a wait in seconds? usleep is sometimes available as the microseconds function I believe.
James
-- Jonas Hansson