Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

RE: RE: How can I keep track of the execution time of a script?

by merlyn (Sage)
on Oct 04, 2000 at 23:47 UTC ( #35322=note: print w/ replies, xml ) Need Help??


in reply to RE: How can I keep track of the execution time of a script?
in thread How can I keep track of the execution time of a script?

Perhaps you wanted an END block instead of a DIE handler.

END { warn "this script took ", time - $^T, " seconds\n"; }
A die handler is only triggered on aborts. END blocks are triggered on all normal terminations, including aborts.

-- Randal L. Schwartz, Perl hacker


Comment on RE: RE: How can I keep track of the execution time of a script?
Download Code
RE:(3) How can I keep track of the execution time of a script?
by Adam (Vicar) on Oct 04, 2000 at 23:48 UTC
    Good call... I forgot about the END block.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2015-07-05 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls