| OS | Supported | | ------- | ----------------------- | | Linux | :heavycheckmark: | | Windows | :heavycheckmark: | | MacOS | :question: (not tested) |
```rust use user_idle::UserIdle;
let idle = UserIdle::get_time().unwrap();
let idleseconds = idle.asseconds(); let idleminutes = idle.asminutes(); // Check the documentation for more methods ```