Boost logo

Boost :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2007-05-01 04:55:37


Philippe Vaucher wrote:
> I found why my device_doesn't work, it's because I time a usleep(), and for
> some reasons I ignore it refuses to work.
>

The reason is simple: clock() times CPU time. usleep() sleeps - it
doesn't use the CPU. Thus, no "time" elapses during the sleep.

This, by the way, is something you should mention in the clock_timer docs.

Sebastian Redl


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk