[go: up one dir, main page]

sysinfo 0.15.11

Library to get system information such as processes, processors, disks, components and networks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//
// Sysinfo
//
// Copyright (c) 2018 Guillaume Gomez
//

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

    let mut s = sysinfo::System::new();
    s.refresh_all();
    assert!(s.get_uptime() != 0);
}