Expand description
Get the idle time of a user. The time returned is the time since the last user input event.
Example:
use user_idle_time::get_idle_time;
let idle = get_idle_time().unwrap();
let idle_seconds = idle.as_secs();Functions§
- get_
idle_ time - Get the idle time of a user.