in reply to (jptxs) Re: how long does for(1..$n) take?
in thread how long does for(1..$n) take?

alarm(), as suggested earlier, will work just fine. It sounds as though you are building some sort of test suite, though.

In that case, to keep it modular, it may make sense to fork a child and have the parent sleep(60) then kill the child.

Update: This also has the advantage of returning all the memory back to the OS after your malloc() fest. TIMTOWTDI

  • Comment on Re: (jptxs) Re: how long does for(1..$n) take?