| Crates.io | system-idle-time |
| lib.rs | system-idle-time |
| version | 1.0.4 |
| created_at | 2025-11-29 22:28:45.256419+00 |
| updated_at | 2025-11-30 18:01:03.030246+00 |
| description | A cross-platform Rust library for getting the last user input on the system. |
| homepage | |
| repository | https://github.com/SpikeHD/system-idle-time |
| max_upload_size | |
| id | 1957588 |
| size | 38,320 |
Cross-platform Rust library for getting the last user input on the system.
cargo add system-idle-time
use system_idle_time::get_idle_time;
fn main() {
match get_idle_time() {
Ok(idle_time) => println!("Idle time: {} ms", idle_time.as_millis()),
Err(e) => eprintln!("Error getting idle time: {}", e),
}
}
PRs, issues, etc are all welcome!