Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Is it possible to issue a perl command to sleep for less than 1 second?

by kscript (Novice)
on Aug 24, 2007 at 15:09 UTC ( [id://634892]=note: print w/replies, xml ) Need Help??


in reply to Is it possible to issue a perl command to sleep for less than 1 second?

You can use Time::HiRes for that (as stated above).
use Time::HiRes qw (sleep); sleep (0.15); # Replaces sleep() with a high-precision alternative Time::HiRes::sleep (0.2); # if you don't want your standard sleep() ov +erwritten
  • Comment on Re: Is it possible to issue a perl command to sleep for less than 1 second?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://634892]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-26 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found