Skip to main content

uptime

Function uptime 

Source
pub fn uptime() -> Result<Duration>
Expand description

The time since the machine booted, including time suspended: monotonic.

println!("up {:?}", sys_lib::host::uptime()?);

ยงErrors

Os when the clock cannot be read.