Skip to main content

pid_start_time

Function pid_start_time 

Source
pub fn pid_start_time(pid: u32) -> Option<u64>
Expand description

Read a process start time as a stable PID identity token.

Linux returns field 22 of /proc/<pid>/stat, measured in clock ticks since boot. macOS returns the proc_bsdinfo start timestamp in microseconds. Both distinguish a recorded process from a later process that reused the same PID.