Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How to sleep 1 microsecond?

by influx (Beadle)
on Aug 17, 2012 at 08:31 UTC ( #987938=note: print w/ replies, xml ) Need Help??


in reply to How to sleep 1 microsecond?

What about select(undef, undef, undef,  0.000001); ?


Comment on Re: How to sleep 1 microsecond?
Download Code
Replies are listed 'Best First'.
Re^2: How to sleep 1 microsecond?
by davido (Archbishop) on Aug 17, 2012 at 08:46 UTC

    It won't be any more accurate than the Time::HiRes::nanosleep function.

    I've been sitting here for an hour hoping that our esteemed brother would share with us what he's using single microsecond granularity for. How am I supposed to get any sleep tonight with this mystery unresolved? ;)


    Dave

      True. I won't get a nanosecond of sleep until this mystery is resolved.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2015-07-29 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls