100 ms delay function needed

Phil phil at spiderweb.com.au
Tue Aug 28 22:09:07 BST 2001


On Mon, 27 Aug 2001 17:20, you wrote:
> Phil wrote:
> > I need a function that will give me a 100ms delay, something like sleep.
> > An accuracy of plus and minus 20 ms would be OK.
>
> usleep() should do this job for you. For a more portable solution consider
> using select() with no file descriptor selected.
>
> Regards,
> Juergen

Thanks for the replies.

usleep() was what I was looking for but is not listed in the C++ reference or 
my favorite C++ book.

I know that QT has a usleep function but my application is for console use 
only.

-- 
Regards,
Phil
phil at spiderweb.com.au

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list