Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Get Process Start Time

by hsinclai (Deacon)
on Feb 16, 2011 at 20:11 UTC ( [id://888560]=note: print w/replies, xml ) Need Help??


in reply to Get Process Start Time

Definitely try something, then post.. here is one idea
use strict; use warnings; my $launch_time = time(); # Do something with $launch_time # execute external my $result = qx!/some/program -flags!; # Check for success # or #exec and exit { exec ('/some/program') }; print STDERR "couldn't exec program: $!"; # if exec fails, this script continues $launch_time = 'LAUNCH_FAILED';
On *nix try perldoc -q time to see more ideas.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found