Skip to main content

STARTTIME_EXPR_POSIX

Constant STARTTIME_EXPR_POSIX 

Source
pub const STARTTIME_EXPR_POSIX: &str = "s=$(cat /proc/$$/stat); s=${s##*) }; set -- $s; echo ${20}";
Expand description

Field 22 of /proc/$$/stat: the 20th token after the last ) ($$ inside $(...) is the shell’s pid; measured under dash).