tools/qelapsedtimer.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3static const qint64 invalidData = static_cast<long long>(0x8000000000000000LL); -
4void QElapsedTimer::invalidate() -
5{ -
6 t1 = t2 = invalidData; -
7}
executed: }
Execution Count:590148
590148
8 -
9 -
10 -
11 -
12 -
13 -
14 -
15bool QElapsedTimer::isValid() const -
16{ -
17 return t1 != invalidData && t2 != invalidData;
executed: return t1 != invalidData && t2 != invalidData;
Execution Count:381183
381183
18} -
19bool QElapsedTimer::hasExpired(qint64 timeout) const -
20{ -
21 -
22 -
23 return quint64(elapsed()) > quint64(timeout);
executed: return quint64(elapsed()) > quint64(timeout);
Execution Count:77961
77961
24} -
25 -
26 -
27 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial