Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-33760

QTimer doc is misleading about accuracy

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.2.0 Beta1
    • 5.1.1
    • Core: Event loop
    • None
    • c74f60b09dc031b19ebfa11718d44fb06a5569b2

      Since introduction of Qt::TimerType and defaulting to CoarseTimer the following section of QTimer doc is misleading:

      Accuracy and Timer Resolution
      
      Timers will never time out earlier than the specified timeout value and they are not guaranteed to time out at the exact value specified. In many situations, they may time out late by a period of time that depends on the accuracy of the system timers.
      
      The accuracy of timers depends on the underlying operating system and hardware. Most platforms support a resolution of 1 millisecond, though the accuracy of the timer will not equal this resolution in many real-world situations.
      
      If Qt is unable to deliver the requested number of timer clicks, it will silently discard some.
      

        For Gerrit Dashboard: QTBUG-33760
        # Subject Branch Project Status CR V

            thiago Thiago Macieira
            g76r Greg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes