I did as you said Bill.
Made a global DWORD SleepTime in my app to store Sleep Time in MS and a global int SleepStatus to hold 1 for sleep or 0 for wakeup.
I can effectively control CPU usage by subtracting sleep time from 100, putting the result into awake time thus giving me a pseudo percentage CPU load control in my app. ie sleep 20 out of 100 ms
But when my app is sleeping it can't accept any input. bum.
Made a global DWORD SleepTime in my app to store Sleep Time in MS and a global int SleepStatus to hold 1 for sleep or 0 for wakeup.
I can effectively control CPU usage by subtracting sleep time from 100, putting the result into awake time thus giving me a pseudo percentage CPU load control in my app. ie sleep 20 out of 100 ms
But when my app is sleeping it can't accept any input. bum.