sleep()is often implemented using
On some older systems, it may sleep up to a full second less than what you requested, depending on how it counts seconds. Most modern systems always sleep the full amount.
For delays of finer granularity than one second, you may use Perl's
syscall() interface to access
your system supports it, or else see select() below.
See also the