7 unstable releases
0.3.1 | Jun 28, 2024 |
---|---|
0.3.0 | Nov 19, 2023 |
0.2.2 | Aug 1, 2022 |
0.2.1 | Jul 18, 2020 |
0.0.0 | Oct 8, 2017 |
#128 in Operating systems
10,204 downloads per month
Used in 5 crates
6KB
80 lines
Multi-platform uptime library for Rust
Example
extern crate uptime_lib;
fn main() {
match uptime_lib::get() {
Ok(uptime) => {
println!("uptime: {} seconds", uptime.as_secs_f64());
}
Err(err) => {
eprintln!("uptime: {}", err);
std::process::exit(1);
}
}
}
Author
itchyny (https://github.com/itchyny)
License
This software is released under the MIT License, see LICENSE.
Dependencies
~0.2–36MB
~542K SLoC