Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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
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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-10-09 21:06 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (252 votes), past polls