in reply to how long does for(1..$n) take?

Have you considered setting an alarm for one minute? That will be significantly more reliable than trying to precisely time a for loop, especially since the execution time of the for loop will depend on things outside the control of the program, such as how busy the CPU is with other processes.

Replies are listed 'Best First'.
(jptxs) Re: how long does for(1..$n) take?
by jptxs (Curate) on Feb 16, 2001 at 04:51 UTC
    I got so hung up on the for thing I didn't even think of alarm. perfect, thanks.
    "A man's maturity -- consists in having found again the seriousness one had as a child, at play." --Nietzsche