Hi Steve, I tried nanosleep as well with similar results. The 1ms delay does not need to be accurate. I just have a fairly short loop that needs to run quite often. Even at 1ms it should spend most of it's time sleeping. I'll have to do some more experiments to try to tie down what is actually happening.
Les On 04/04/11 01:07, Stephen Wille Padnos wrote: > > Usleep should return. Are you actually trying to delay 1 millisecond > though? That may not work so well in userspace. > > I did note that usleep is apparently obsolete, and you should use > nanosleep instead. (this is in the usleep manpage here: > <http://linux.die.net/man/3/usleep> > > - Steve ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
