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 ...
- 09-04-2007 #1Just 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??
- 09-04-2007 #2Just 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
- 09-07-2007 #3Just 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..


Reply With Quote