PDA

View Full Version : How to avoid 50- 99 % of CPU use for analog clock example with 10 ms (Painter ...)



tonnot
5th October 2010, 19:11
If I change the timer interval to 10 ms (to have a chronometer) then the cpu spent 50-99% of CPU.
I know that is related to MS windows, but anyone can tell me some trick?
Must I try it with a thread ?

wysota
5th October 2010, 20:31
I know that is related to MS windows, but anyone can tell me some trick?
The trick is not to repaint the widget 100 times per second.