[][src]Function rsys::uptime

pub fn uptime() -> Result<u64, Error>

Returns time since boot in seconds.

  • linux
    • by reading /proc/uptime
  • macos
    • by calling sysctl("kern.boottime") ...