% ps -p `pidof mysqld` -o start,etime,etimes
STARTED ELAPSED ELAPSED
Dec 05 34-08:25:41 2967941
Jeśli główny proces ma potomków, zobaczysz wiele PID:
% ps -C apache2 -o pid=,start=,etime=
36391 07:04:56 12:40:57
36392 07:04:56 12:40:57
36393 07:04:56 12:40:57
36394 07:04:56 12:40:57
36395 07:04:56 12:40:57
37462 07:27:40 12:18:13
56364 Jan 05 2-23:33:00
Opis opcji
etime(Elapsed Time)- czas w formacie
[[DD-]hh:]mm:ss etimes(Elapsed Time in Seconds)- czas w sekundach
[PID]: Process Identification Number