process_uptime

Crates.ioprocess_uptime
lib.rsprocess_uptime
version0.1.4
sourcesrc
created_at2020-12-15 11:04:03.146452
updated_at2021-12-20 08:04:28.648494
descriptionQuick and simple way of fetching an application's uptime by pid
homepage
repositoryhttps://github.com/irexiz/process_uptime
max_upload_size
id323068
size17,457
(irexiz)

documentation

README

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}/stat starttime column

Commit count: 16

cargo fmt