in reply to Simple question about sleep function
Hi Lucas Rey,
I believe one of the major differences is that select lets you specify subsecond precision for the sleep duration.
My gut tells me I wouldn't expect a noticable difference between the two in terms of performance. But I'm confused why performance would matter for a function that effectively causes the script to hang?
If you want higher precision, have a look at Time::HiRes.
Regards,
-- Hauke D
Updated: Made wording a little more specific.
|
|---|