ps
Table of Contents

PS 命令

etime

etime – elapsed time since the process was started, in the form [[DD-]hh:]mm:ss.

!6 $ ps -p 4261 -o etime
    ELAPSED
      25:05
ps -eo pid,comm,lstart,etime,time,args

etimes

etimes – elapsed time since the process was started, in seconds.

!7 $ ps -p 4261 -o etimes
ELAPSED
   1516
ps -eo pid,comm,lstart,etimes,time,args