Skip to content

Quick way to fetch process uptime by pid

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

irexiz/process_uptime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Quick way to fetch process uptime by pid

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages