I think you want to look at the alarm function:
alarm SECONDS alarm Arranges to have a SIGALRM delivered to this process after the specified number of wallclock seconds have elapsed. If SECONDS is not specified, the value stored in $_ is used.
-- Dan
In reply to Re: calculate run time
by zigdon
in thread calculate run time
by venki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |