Find the answer to your Linux question:
Results 1 to 3 of 3
how to get the time of a process?? as in #time <pid> but its not showing nethg specific to that pid but it gives time is that time taken to ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    12

    time of a pid

    how to get the time of a process??

    as in

    #time <pid>

    but its not showing nethg specific to that pid

    but it gives time
    is that time taken to execute that command??

  2. #2
    Just Joined!
    Join Date
    Aug 2007
    Posts
    8
    for last kernels (from 2.6.22) you can read from file /proc/<pid>/stat, 14-17 values is
    utime user mode jiffies
    stime kernel mode jiffies
    cutime user mode jiffies with child's
    cstime kernel mode jiffies with child's

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Location
    pilani,india
    Posts
    4
    time <my command> gives the time taken for the command 'my command' to get executed...
    the time for a running process can be found from ps -aux command..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...