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

QElapsedTimer is invalid when first created but retuns valid.

XMLWordPrintable

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

      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());
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes