Get how much time process has been running in seconds

I use this command to get the time elapsed for a process

ps -eo pid,pcpu,pmem,user,args,etime,cmd --sort=start_time | grep perl

It gives in format

19990  0.0  0.0 user /usr/bin/php       5-09:58:51 /usr/bin/php

I need in seconds.

man ps on my debian desktop states :

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

So you might want to read the manual of program you are using for better understanding which options it provides.

Regards
Peasant.

Thanks.

Its centos an d no etimes available.

# man ps | grep etime

during the entire lifetime of a process. This is not ideal, and it does not

%t     etime    ELAPSED