dmisys 0.1.0

This is a specialized library designed to output the hardware configuration required by the system, as well as various status information of the current device.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use sysinfo::System;
use crate::cv;

/// In System Start a time
pub fn read_systime_up() -> (u64,u64,u64) {
    let uptime = System::uptime();
    let (days,hours,minutes)  = cv::format_times(uptime);  

    (days, hours, minutes)
}

/// In 1970/01/01 start a time(Unix time)
pub fn read_systime_boot() -> (u64,u64,u64) {
    let bootime = System::boot_time();
    let (days,hours,minutes)  = cv::format_times(bootime);  

    (days, hours, minutes)
}