Win32Lib Timers
- Posted by "Brian K. Broker" <bkb at CNW.COM> Oct 05, 1999
- 501 views
Hi, I've written a Win32 program that does some animation that I am rewriting to use a timer as opposed to busy-waiting. The busy waiting works fine but utilizes 100% of CPU resources while it goes through an empty loop waiting for every 5 milliseconds to occur. The problem with the timer approach is that if I set up a timer to tick every 5 milliseconds I don't get near that resolution (i.e. busy waiting produces faster animations). I can speed up the timer animation by increasing overall CPU utilization (by moving my mouse cursor over the start bar) so I know it _can_ go faster. So my question is, how do I force my program to see more ticks? -- Brian Broker