[Qt-interest] QTimer on Windows in Unreliable for Small (16ms - 30ms) Delays

David Scriven davidwriter at yahoo.com
Mon Sep 7 01:48:17 CEST 2009


I'm a bit confused - the description for QTimer says:

"Note that QTimer's accuracy depends on the underlying operating system and hardware."
"Most platforms support an accuracy of 1 millisecond, but Windows 98 supports only 55."
"If Qt is unable to deliver the requested number of timer clicks, it will silently discard some"
 
while you said:


>That said, QTimer uses the system timer which is unreliable and
>inaccurate. You should use the Windows Multimedia Timers if you
>something accurate. In fact, QTimer uses multimedia timers for interval
>< 10ms (maybe it's <= 10ms, not sure). You can either use 8ms timer and
>process every alternate one or use the Windows MM Timer Api directly.

so with Win XP, what is the accuracy of QTimer for periods of greater than
10 msecs - is it 1 millisecond or is it more?  Why doesn't QTimer use the
Multimedia Timers for all periods?

DS



      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/



More information about the Qt-interest-old mailing list