The simplest way is just to use time. Something like:
my $end = time + 30; while (time < $end) { ... }
In reply to Re: How to Run a section of code for a particular amount of time ?
by GrandFather
in thread How to Run a section of code for a particular amount of time ?
by ankit.tayal560
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |