Skip to main content

process_start_time

Function process_start_time 

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

When pid started, in a unit fixed per platform (clock ticks since boot on Linux, microseconds since the epoch on macOS), or None when it isn’t running or the platform can’t say. A pid plus its start time names one process even across pid reuse: the launcher checks both before it signals a pid it read from a file (agent_roots).