45 #include <QtCore/qglobal.h> 64 static bool isMonotonic();
71 qint64 nsecsElapsed()
const;
73 bool hasExpired(
qint64 timeout)
const;
75 qint64 msecsSinceReference()
const;
76 qint64 msecsTo(
const QElapsedTimer &other)
const;
77 qint64 secsTo(
const QElapsedTimer &other)
const;
80 {
return t1 == other.
t1 && t2 == other.
t2; }
82 {
return !(*
this == other); }
95 #endif // QTIMESTAMP_H
static double elapsed(qint64 after, qint64 before)
ClockType
This enum contains the different clock types that QElapsedTimer may use.
#define QT_END_NAMESPACE
This macro expands to.
bool operator<(const QByteArray &a1, const QByteArray &a2)
Returns true if byte array a1 is lexically less than byte array a2; otherwise returns false...
The QElapsedTimer class provides a fast way to calculate elapsed times.
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool operator!=(const QElapsedTimer &other) const
Returns true if this object and other contain different times.
bool operator==(const QElapsedTimer &other) const
Returns true if this object and other contain the same time.