Page 1 of 1

how to capture the system idle time

Posted: Wed Jul 27, 2005 11:00 pm
by ravi_reddy_007
I want to capture the system idle time. Means if the user did not press any key or did not move the mouse then it is considered as system idle time. I want the code for this in C/C++ on windows operating system. Please help me.

Re: how to capture the system idle time

Posted: Wed Jul 27, 2005 11:00 pm
by Osbios
Thats Win-API stuff. Use [url]msdn.microsoft.com[/url]

Re: how to capture the system idle time

Posted: Fri Aug 05, 2005 11:00 pm
by carbonBased
Make a thread, of the lowest priority. Count how long this thread is active. That's your system idle time.