how to use sleep comand for milliseconds?

how to use sleep comand for milliseconds?

Hi - Ive been after this very same thing today and it looks like you can only use it for seconds. There is a function called nanosleep but it is a "C" function call so you will need to write a "C" program.

I'm assuming that I can accomplish this in Perl

In Perl we can use

sleep EXPR or sleep.

In the former, Causes the script to sleep for EXPR seconds and in later script sleeps forever if no EXPR is mentioned.

Thanks,
Raj

I added a FAQ article for this question: http://www.unix.com/showthread.php?t=31097