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

It's how much CPU time the process has used (in seconds, I assume). 'User' time is how much time was spent in the program itself and 'system' time is how much time was spent in the operating system servicing the program's requests.

Update: Upon further reflection, I don't think that time is in seconds. Proc::ProcessTable::Process says that utime is in 1/100s of seconds, so that's probably what time is in too. Your 120000 figure is 33 hours as seconds and 20 minutes as 1/100s of seconds. If you're still in doubt, you could see what it says about "perl -e '$i++ while 1'" after ten seconds. My guess is it will be about 1000.

Replies are listed 'Best First'.
Re^2: Interpreting the Meaning of Time Method in Proc::ProcessTable
by jimsearle (Initiate) on Dec 07, 2007 at 21:49 UTC
    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

      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;