If you want to find out from how much time a PID is active or running then you should the command below.
[root@server ~]# ps -ax -o etime,pid,cmd | grep -Ev 'sh -| grep' | grep script.sh
03:05 5259 /bin/bash ./script.sh
The script above it’s running from 3 minutes.