Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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?

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 perusing the Monastery: (9)
As of 2016-10-26 22:29 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (350 votes). Check out past polls.