<?xml version="1.0" encoding="windows-1252"?>
<node id="721" title="How can I sleep() or alarm() for under a second?" created="1999-10-07 20:29:21" updated="2005-08-15 07:49:18">
<type id="834">
perlfaq nodetype</type>
<author id="519">
faq_monk</author>
<data>
<field name="doctext">


&lt;P&gt;
If you want finer granularity than the 1 second that the 
&lt;CODE&gt;sleep()&lt;/CODE&gt; function provides, the easiest way is to use the 
&lt;CODE&gt;select()&lt;/CODE&gt; function as documented in
 &lt;U&gt;select&lt;/U&gt;. If your system has itimers and 
&lt;CODE&gt;syscall()&lt;/CODE&gt; support, you can
check out the old example in &lt;A HREF="http://www.perl.com/CPAN/doc/misc/ancient/tutorial/eg/itimers.pl"&gt;http://www.perl.com/CPAN/doc/misc/ancient/tutorial/eg/itimers.pl&lt;/A&gt;
.

&lt;P&gt;
</field>
</data>
</node>
