"be consistent" | |
PerlMonks |
Re: Blocking call with time limit ( Linux::Inotify2 )by BrowserUk (Patriarch) |
on Sep 08, 2010 at 09:03 UTC ( [id://859291]=note: print w/replies, xml ) | Need Help?? |
The simple solution is Time::HiRes:
As for your fears about cpu usage. Polling once every hundredth or thousandth of a second, (much less every second), barely raises the usage at all. On my system, the usage is not discernible from zero to 2 decimal places. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|