Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Timing External Program Execution

by Aristotle (Chancellor)
on Oct 20, 2002 at 02:31 UTC ( [id://206614]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://206614]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found