uptimer

Crates.iouptimer
lib.rsuptimer
version0.2.1
sourcesrc
created_at2024-07-28 17:56:59.071004
updated_at2024-07-28 17:56:59.071004
descriptionA multiplatform library to get the uptime of the current process.
homepage
repositoryhttps://github.com/nerixyz/uptimer
max_upload_size
id1318133
size5,604
nerix (Nerixyz)

documentation

README

uptimer

A multiplatform library to get the uptime of the current process.

  • Windows
  • Linux
  • macOS

Example

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());
}
Commit count: 0

cargo fmt