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

QElapsedTimer is invalid when first created but retuns valid.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 4.7.0
    • Core: Date/Time
    • None
    • Linux

    Description

      When first created, a QElapsedTimer call to isValid() retuns true even though the QElapsedTimer is invalid. Everything is fine under Windows. Other operating systems untested. To reproduce:

      QElapsedTimer m_tTimer;
      if ( m_tTimer.isValid() )
          qDebug() << QString("Time elapsed: %1").arg(m_tTimer.elapsed());
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
              smokex Joseph Crowell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes