Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by Adam (Vicar)
on Oct 04, 2000 at 23:39 UTC ( #35320=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # your script goes here
    
    BEGIN { $SIG{__DIE__} = sub { print + time() - $^T, $/, @_ } }
    print + time() - $^T, $/
    
  2. or download this
    END { $a=time-$^T, warn sprintf "Runtime %d min %d sec\n", $a/60, $a%6
    +0 }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-09-30 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (377 votes), past polls