sleep() takes microseconds as argument, but it can be as unprecise as 20ms?
I have tried 1ms, so sleep(1000), but I get more. It seems a 10 ms timer quantum plus one extra 10 ms tick for every positive usleep() call.
Also gettimeofday() is a bit better, but also in the 10ms range of error.
So there is actually no way to have a 1-2 ms sleep on ELKS?
sleep() takes microseconds as argument, but it can be as unprecise as 20ms?
I have tried 1ms, so sleep(1000), but I get more. It seems a 10 ms timer quantum plus one extra 10 ms tick for every positive usleep() call.
Also gettimeofday() is a bit better, but also in the 10ms range of error.
So there is actually no way to have a 1-2 ms sleep on ELKS?