- or download this
while( my $r = $qr->dequeue ) {
++$count;
...
$t = time;
}
- or download this
elsif (($count & 63) == 0) {
if (time > $t + 5) {
...
}
}
}
- or download this
perl -E"$s=time(); $i=0; ++$c, rand()*rand() while time() < $s+5; say
+$c/5"
3210038.8