How could I get user idle time on Windows in seconds?
I wrote small program to check work time on pure C
, but all answers that I could find were written in C#
.
Is there a way to get it like on MacOSX
or X11
?
For OSX
I used this solution - https://github.com/kairichard/idler
And for Linux - https://github.com/gpolitis/xidle