Reputation:
I want to track how long i been away from my keyboard/how long i took a break. I figure tracking my keyboard and mouse is a good way to see when i left and arrived. Whats the best way to track this? Some options i see
Upvotes: 1
Views: 1344
Reputation: 3204
http://www.geekpedia.com/tutorial210_Retrieving-the-Operating-System-Idle-Time-Uptime-and-Last-Input-Time.html might also help you
bit late :P :P
Upvotes: 1
Reputation: 3362
Try looking at this.
You shouldn't need to do the tracking yourself, it looks like you can do system calls to get the idle time.
Upvotes: 4