Crates.io | uptimer |
lib.rs | uptimer |
version | 0.2.1 |
source | src |
created_at | 2024-07-28 17:56:59.071004 |
updated_at | 2024-07-28 17:56:59.071004 |
description | A multiplatform library to get the uptime of the current process. |
homepage | |
repository | https://github.com/nerixyz/uptimer |
max_upload_size | |
id | 1318133 |
size | 5,604 |
A multiplatform library to get the uptime of the current process.
uptimer = { git = "https://github.com/nerixyz/uptimer", tag = "v0.2.0" }
use std::thread::sleep;
use std::time::Duration;
fn main() {
sleep(Duration::from_secs(2));
println!("{:?}", uptimer::get());
}