Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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 about the Monastery: (15)
As of 2015-11-24 22:22 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (664 votes), past polls