Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: How to sleep 1 microsecond?

by Anonymous Monk
on Aug 17, 2012 at 08:13 UTC ( #987935=note: print w/ replies, xml ) Need Help??


in reply to Re: How to sleep 1 microsecond?
in thread How to sleep 1 microsecond?

Not to mention, the various sleep functions only guarantee that they sleep at least the amount of time specified. You can't really do accurate timing with them.

Time::HiRes::ualarm might work better though...


Comment on Re^2: How to sleep 1 microsecond?
Download Code
Re^3: How to sleep 1 microsecond?
by sophate (Beadle) on Aug 18, 2012 at 10:21 UTC

    Thanks but the ualarm function is like usleep which is not reliable if I want to count a few microsecond.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-07-10 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (199 votes), past polls