Read the documentation of Time::Hires: "Any attempt to sleep for X seconds will most probably end up sleeping more than that, but don't be surpised if you end up sleeping slightly less."
while ($i++<100) { push @g, scalar gettimeofday(); } print join("\n",@g);
In reply to Re: Time::HiRes sleep does not always work
by jethro
in thread Time::HiRes sleep does not always work
by tone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |