[][src]Crate user_idle

Get a users idle time.

On Linux systems, the time returned is the time the desktop has been locked.

On windows systems, the time returned is the time since the last user input event. See GetLastInputInfo for more info.

Example:

use user_idle::UserIdle;
let idle = UserIdle::get_time().unwrap();
let idle_seconds = idle.as_seconds();
let idle_minutes = idle.as_minutes();
// Check the documentation for more methods

Structs

Error
UserIdle