Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://35320]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found