Expand description
This library returns the uptime of the current process on windows and unix-like systems.
§Example
use std::thread::sleep;
use std::time::Duration;
sleep(Duration::from_secs(2));
assert!(uptimer::get().unwrap() >= Duration::from_secs(2))
Functions§
- get
- Returns the uptime of the current process (through procfs).