how to get the accumulate cpu time of a process
as my assignment is to make some special control to specific 2 process
but it need the accumulate cpu time of the processes
how to get it?
i know it is store at the struct time of the task_struct
but there are 4 variables which one is the right one?
and i have tried to print them all
cstime, cutime is 0
and stime,utime is >0
and what actual type of clock_t is?
|