Function procfs::boot_time [−][src]
pub fn boot_time() -> ProcResult<DateTime<Local>>
Expand description
The boot time of the system, as a DateTime
object.
This is calculated from /proc/stat
.
This function requires the “chrono” features to be enabled (which it is by default).