how to capture the system idle time
-
- Posts: 3
- Joined: Wed Jul 27, 2005 11:00 pm
how to capture the system idle time
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
Thats Win-API stuff. Use [url]msdn.microsoft.com[/url]
dw 0xAA55
- carbonBased
- Member
- Posts: 382
- Joined: Sat Nov 20, 2004 12:00 am
- Location: Wellesley, Ontario, Canada
- Contact:
Re: how to capture the system idle time
Make a thread, of the lowest priority. Count how long this thread is active. That's your system idle time.