> Hello all,
>
> does anyone know of a built-in Perl function that can divine a processes
> start-time?
>
> EXAMPLE :
>
> on UNIX Systems :
>
> <USERID> <PID> <PPID> <C> 10:51:44 pts/75 0:01 xterm -e
>
> the underlined time is how long the process has been running.
> Is there a better way, using pre-packaged Mods to find this out for
> comparison with another process runtime?
> (without regexing the time out of the PS list and comparing it to another
> regexed Process-Time I mean...)
>
> Thanx!
>
Do you mean:
$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.
from
perldoc perlvar
What are you up to? I imagine there are all kinds of issues with respect
to system times changing, especially in an ntpd environment (very
annoying trust me).
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>