Used .pop() to speed up the process. Using same file as before, time was reduced by 50%. Use ps -p PID -o etime=