
1 May
2007
1 May
'07
10:16 a.m.
The reason is simple: clock() times CPU time. usleep() sleeps - it doesn't use the CPU. Thus, no "time" elapses during the sleep.
Makes sense, but on windows it works even when I Sleep() so it confused me a bit. This, by the way, is something you should mention in the clock_timer docs. Oh yes it's already there in my local doc :) Thank you. Philippe