
1 May
2007
1 May
'07
8:55 a.m.
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