Crate user_idle_time

Crate user_idle_time 

Source
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.

Type Aliases§

Error
Result