process_uptime 0.1.3

Quick and simple way of fetching an application's uptime by pid
Documentation

Description

Library fetching process uptime via ps -o etimes -p <PID> --no-headers

If ps is restricted (as is the case on some devices), library fallbacks to fetching process uptime from /proc/{pid} metadata