sysinfo 0.19.0

Library to get system information such as processes, processors, disks, components and networks
Documentation
//
// Sysinfo
//
// Copyright (c) 2018 Guillaume Gomez
//

#[test]
fn test_uptime() {
    use sysinfo::SystemExt;

    if sysinfo::System::IS_SUPPORTED {
        let mut s = sysinfo::System::new();
        s.refresh_all();
        assert!(s.uptime() != 0);
    }
}