in reply to Re: Interpreting the Meaning of Time Method in Proc::ProcessTable
in thread Interpreting the Meaning of Time Method in Proc::ProcessTable

Sorry, but I still don't get it... ProcessTable says this:
PID    PPID   SIZE         RSS          TIME         COMMAND
19524  14920  936000       762796       55550000     /tools/atoptech/AP_07.06-06.27/Linux/bin/rhel3-64/AP 
and ps says this about the same process:
% ps -o 'ppid pid vsz rss time command'
 PPID   PID   VSZ  RSS     TIME COMMAND
14920 19524 936000 762796 00:00:55 /tools/atoptech/AP_07.06-06.27/Linux/bin/rhel3-64/AP
Thanks, Jim
  • Comment on Re^2: Interpreting the Meaning of Time Method in Proc::ProcessTable

Replies are listed 'Best First'.
Re^3: Interpreting the Meaning of Time Method in Proc::ProcessTable
by kyle (Abbot) on Dec 08, 2007 at 13:29 UTC

    It looks as if ps is reporting time in seconds (hours, minutes, seconds, separated by colons) and Proc::ProcessTable is reporting it in microseconds. If what you have is microseconds, you can convert that to seconds by dividing by one million.

    my $microseconds = 55550000; my $seconds = $microseconds / 1_000_000;