Skip to main content

process_started_at

Function process_started_at 

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

When process pid started, in whole seconds since the Unix epoch, as the OS stored it (on Unix ps’s lstart, on Windows its creation time); none when no process has that pid, or the OS couldn’t say. A process whose start is after a moment can’t be one that ran at it: what tells a reused pid from the process that had it.