1 2
ps -o etime= -p PID # prints running time in DD-HH:MM:SS ps -o etimes= -p PID # prints running time in seconds
Source: cyberciti