in reply to Timing External Program Execution

What you want to look into is the alarm function. I don't have any actual experience with it, so someone else would have to supply sample code, since there are a couple gotchas to it.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: Timing External Program Execution
by bart (Canon) on Oct 21, 2002 at 11:48 UTC
    alarm does not work on Windows. At least, not on the non-NT flavours I have access to.

    Update (26 oct): I just saw this journal entry on use.perl, with a link to an Perl script using an alternative approach (for Win32 only). It loks very much applicable to this particular problem.