| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qelapsedtimer.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | static const qint64 invalidData = static_cast<long long>(0x8000000000000000LL); | - | ||||||||||||
| 4 | void QElapsedTimer::invalidate() noexcept | - | ||||||||||||
| 5 | { | - | ||||||||||||
| 6 | t1 = t2 = invalidData; | - | ||||||||||||
| 7 | } executed 134639 times by 81 tests: end of blockExecuted by:
| 134639 | ||||||||||||
| 8 | - | |||||||||||||
| 9 | - | |||||||||||||
| 10 | - | |||||||||||||
| 11 | - | |||||||||||||
| 12 | - | |||||||||||||
| 13 | - | |||||||||||||
| 14 | - | |||||||||||||
| 15 | bool QElapsedTimer::isValid() const noexcept | - | ||||||||||||
| 16 | { | - | ||||||||||||
| 17 | return executed 153606 times by 47 tests: t1 != invalidDatareturn t1 != invalidData && t2 != invalidData;Executed by:
executed 153606 times by 47 tests: return t1 != invalidData && t2 != invalidData;Executed by:
| 0-153606 | ||||||||||||
| 18 | } | - | ||||||||||||
| 19 | bool QElapsedTimer::hasExpired(qint64 timeout) const noexcept | - | ||||||||||||
| 20 | { | - | ||||||||||||
| 21 | - | |||||||||||||
| 22 | - | |||||||||||||
| 23 | return executed 77714 times by 3 tests: quint64(elapsed()) > quint64(timeout);return quint64(elapsed()) > quint64(timeout);Executed by:
executed 77714 times by 3 tests: return quint64(elapsed()) > quint64(timeout);Executed by:
| 77714 | ||||||||||||
| 24 | } | - | ||||||||||||
| 25 | - | |||||||||||||
| 26 | - | |||||||||||||
| Switch to Source code | Preprocessed file |