Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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...

Replies are listed 'Best First'.
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 about the Monastery: (6)
As of 2016-06-25 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (327 votes). Check out past polls.