Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Finding out how long a script has been running

by little (Curate)
on Jun 21, 2002 at 16:55 UTC ( [id://176326]=note: print w/replies, xml ) Need Help??


in reply to Finding out how long a script has been running

I suggest to look up perlman:perlvar of which I here cite:

$BASETIME

$^T

The time at which the program began running, in seconds since the epoch (beginning of 1970). The values returned by the -M, -A, and -C filetests are based on this value.

So you might be looking for something alike this

my $runTimeInSecs = time() - $^T;


Have a nice day
All decision is left to your taste

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2024-03-28 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found