Skip to main content

uptime_secs

Function uptime_secs 

Source
pub fn uptime_secs(ctx: &ServiceContext) -> i64
Expand description

Seconds since this machine booted.

Monotonic and always available, including before any clock is set, which is what makes it the right basis for “how long has this taken” - unlike the wall clock, which can be unset or can jump when the wall clock is learned.