| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | static inline void qt_clock_gettime(clockid_t clock, struct timespec *ts) | - |
| 9 | { | - |
| 10 | clock_gettime(clock, ts); | - |
| 11 | }executed 13428957 times by 670 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 13428957 |
| 12 | | - |
| 13 | | - |
| 14 | static int unixCheckClockType() | - |
| 15 | { | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | returnexecuted 19794545 times by 907 tests: return 1;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
1;executed 19794545 times by 907 tests: return 1;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 19794545 |
| 20 | } | - |
| 21 | | - |
| 22 | bool QElapsedTimer::isMonotonic() noexcept | - |
| 23 | { | - |
| 24 | returnexecuted 4145156 times by 666 tests: return clockType() == MonotonicClock;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
clockType() == MonotonicClock;executed 4145156 times by 666 tests: return clockType() == MonotonicClock;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 4145156 |
| 25 | } | - |
| 26 | | - |
| 27 | QElapsedTimer::ClockType QElapsedTimer::clockType() noexcept | - |
| 28 | { | - |
| 29 | returnexecuted 6365588 times by 903 tests: return unixCheckClockType() == 0 ? SystemTime : MonotonicClock;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
unixCheckClockType() == 0 ? SystemTime : MonotonicClock;executed 6365588 times by 903 tests: return unixCheckClockType() == 0 ? SystemTime : MonotonicClock;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 6365588 |
| 30 | } | - |
| 31 | | - |
| 32 | static inline void do_gettime(qint64 *sec, qint64 *frac) | - |
| 33 | { | - |
| 34 | timespec ts; | - |
| 35 | qt_clock_gettime(unixCheckClockType(), &ts); | - |
| 36 | *sec = ts.tv_sec; | - |
| 37 | *frac = ts.tv_nsec; | - |
| 38 | }executed 13428957 times by 670 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 13428957 |
| 39 | | - |
| 40 | | - |
| 41 | struct timespec qt_gettime() noexcept | - |
| 42 | { | - |
| 43 | qint64 sec, frac; | - |
| 44 | do_gettime(&sec, &frac); | - |
| 45 | | - |
| 46 | timespec tv; | - |
| 47 | tv.tv_sec = sec; | - |
| 48 | tv.tv_nsec = frac; | - |
| 49 | | - |
| 50 | returnexecuted 7483893 times by 552 tests: return tv;Executed by:- tst_Collections
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- ...
tv;executed 7483893 times by 552 tests: return tv;Executed by:- tst_Collections
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- ...
| 7483893 |
| 51 | } | - |
| 52 | | - |
| 53 | void qt_nanosleep(timespec amount) | - |
| 54 | { | - |
| 55 | int r; | - |
| 56 | do { r = nanosleep(&amount, &amount); }executed 325375 times by 11 tests: end of blockExecuted by:- tst_QDBusAbstractInterface
- tst_QFuture
- tst_QLockFile
- tst_QMutex
- tst_QProcess
- tst_QProgressDialog
- tst_QReadWriteLock
- tst_QSharedPointer
- tst_QTcpServer
- tst_QThread
- tst_QThreadPool
while (r == -1| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 325374 times by 11 testsEvaluated by:- tst_QDBusAbstractInterface
- tst_QFuture
- tst_QLockFile
- tst_QMutex
- tst_QProcess
- tst_QProgressDialog
- tst_QReadWriteLock
- tst_QSharedPointer
- tst_QTcpServer
- tst_QThread
- tst_QThreadPool
|
&& (*| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
__errno_location ()) == 4| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
); | 0-325375 |
| 57 | }executed 325374 times by 11 tests: end of blockExecuted by:- tst_QDBusAbstractInterface
- tst_QFuture
- tst_QLockFile
- tst_QMutex
- tst_QProcess
- tst_QProgressDialog
- tst_QReadWriteLock
- tst_QSharedPointer
- tst_QTcpServer
- tst_QThread
- tst_QThreadPool
| 325374 |
| 58 | | - |
| 59 | static qint64 elapsedAndRestart(qint64 sec, qint64 frac, | - |
| 60 | qint64 *nowsec, qint64 *nowfrac) | - |
| 61 | { | - |
| 62 | do_gettime(nowsec, nowfrac); | - |
| 63 | sec = *nowsec - sec; | - |
| 64 | frac = *nowfrac - frac; | - |
| 65 | returnexecuted 16652 times by 507 tests: return (sec * static_cast<long long>(1000000000LL) + frac) / static_cast<long long>(1000000LL);Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
(sec * static_cast<long long>(1000000000LL) + frac) / static_cast<long long>(1000000LL);executed 16652 times by 507 tests: return (sec * static_cast<long long>(1000000000LL) + frac) / static_cast<long long>(1000000LL);Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 16652 |
| 66 | } | - |
| 67 | | - |
| 68 | void QElapsedTimer::start() noexcept | - |
| 69 | { | - |
| 70 | do_gettime(&t1, &t2); | - |
| 71 | }executed 3238936 times by 522 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 3238936 |
| 72 | | - |
| 73 | qint64 QElapsedTimer::restart() noexcept | - |
| 74 | { | - |
| 75 | returnexecuted 16652 times by 507 tests: return elapsedAndRestart(t1, t2, &t1, &t2);Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
elapsedAndRestart(t1, t2, &t1, &t2);executed 16652 times by 507 tests: return elapsedAndRestart(t1, t2, &t1, &t2);Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 16652 |
| 76 | } | - |
| 77 | | - |
| 78 | qint64 QElapsedTimer::nsecsElapsed() const noexcept | - |
| 79 | { | - |
| 80 | qint64 sec, frac; | - |
| 81 | do_gettime(&sec, &frac); | - |
| 82 | sec = sec - t1; | - |
| 83 | frac = frac - t2; | - |
| 84 | returnexecuted 2689476 times by 517 tests: return sec * static_cast<long long>(1000000000LL) + frac;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
sec * static_cast<long long>(1000000000LL) + frac;executed 2689476 times by 517 tests: return sec * static_cast<long long>(1000000000LL) + frac;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 2689476 |
| 85 | } | - |
| 86 | | - |
| 87 | qint64 QElapsedTimer::elapsed() const noexcept | - |
| 88 | { | - |
| 89 | returnexecuted 2685921 times by 241 tests: return nsecsElapsed() / static_cast<long long>(1000000LL);Executed by:- tst_Gestures
- tst_Lancelot
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QByteDataBuffer
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
nsecsElapsed() / static_cast<long long>(1000000LL);executed 2685921 times by 241 tests: return nsecsElapsed() / static_cast<long long>(1000000LL);Executed by:- tst_Gestures
- tst_Lancelot
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QByteDataBuffer
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QClipboard
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
| 2685921 |
| 90 | } | - |
| 91 | | - |
| 92 | qint64 QElapsedTimer::msecsSinceReference() const noexcept | - |
| 93 | { | - |
| 94 | returnexecuted 6 times by 1 test: return t1 * static_cast<long long>(1000LL) + t2 / static_cast<long long>(1000000LL); t1 * static_cast<long long>(1000LL) + t2 / static_cast<long long>(1000000LL);executed 6 times by 1 test: return t1 * static_cast<long long>(1000LL) + t2 / static_cast<long long>(1000000LL); | 6 |
| 95 | } | - |
| 96 | | - |
| 97 | qint64 QElapsedTimer::msecsTo(const QElapsedTimer &other) const noexcept | - |
| 98 | { | - |
| 99 | qint64 secs = other.t1 - t1; | - |
| 100 | qint64 fraction = other.t2 - t2; | - |
| 101 | returnexecuted 6983 times by 8 tests: return (secs * static_cast<long long>(1000000000LL) + fraction) / static_cast<long long>(1000000LL);Executed by:- tst_QCompleter
- tst_QElapsedTimer
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QPrinter
- tst_languageChange
(secs * static_cast<long long>(1000000000LL) + fraction) / static_cast<long long>(1000000LL);executed 6983 times by 8 tests: return (secs * static_cast<long long>(1000000000LL) + fraction) / static_cast<long long>(1000000LL);Executed by:- tst_QCompleter
- tst_QElapsedTimer
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QPrinter
- tst_languageChange
| 6983 |
| 102 | } | - |
| 103 | | - |
| 104 | qint64 QElapsedTimer::secsTo(const QElapsedTimer &other) const noexcept | - |
| 105 | { | - |
| 106 | returnexecuted 1 time by 1 test: return other.t1 - t1; other.t1 - t1;executed 1 time by 1 test: return other.t1 - t1; | 1 |
| 107 | } | - |
| 108 | | - |
| 109 | bool operator<(const QElapsedTimer &v1, const QElapsedTimer &v2) noexcept | - |
| 110 | { | - |
| 111 | returnexecuted 2 times by 1 test: return v1.t1 < v2.t1 || (v1.t1 == v2.t1 && v1.t2 < v2.t2); v1.t1 < v2.t1 || (v1.t1 == v2.t1 && v1.t2 < v2.t2);executed 2 times by 1 test: return v1.t1 < v2.t1 || (v1.t1 == v2.t1 && v1.t2 < v2.t2); | 2 |
| 112 | } | - |
| 113 | | - |
| 114 | | - |
| | |