45 #include <private/qsystemlibrary_p.h> 57 static volatile bool done =
false;
70 LARGE_INTEGER frequency;
71 if (!QueryPerformanceFrequency(&frequency)) {
86 return seconds * 1000000000 + nanoSeconds;
89 return ticks * 1000000;
99 LARGE_INTEGER counter;
101 if (QueryPerformanceCounter(&counter)) {
102 return counter.QuadPart;
104 qWarning(
"QueryPerformanceCounter failed, although QueryPerformanceFrequency succeeded.");
118 return val | (
quint64(highdword) << 32);
180 return (v1.
t1 - v2.
t1) < 0;
ClockType
This enum contains the different clock types that QElapsedTimer may use.
#define QT_END_NAMESPACE
This macro expands to.
qint64 msecsTo(const QElapsedTimer &other) const
Returns the number of milliseconds between this QElapsedTimer and other.
static qint64 ticksToNanoseconds(qint64 ticks)
friend bool Q_CORE_EXPORT operator<(const QElapsedTimer &v1, const QElapsedTimer &v2)
Returns true if v1 was started before v2, false otherwise.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
bool load(bool onlySystemDirectory=true)
The QElapsedTimer class provides a fast way to calculate elapsed times.
static bool isMonotonic()
Returns true if this is a monotonic clock, false otherwise.
qint64 elapsed() const
Returns the number of milliseconds since this QElapsedTimer was last started.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static quint64 counterFrequency
qint64 restart()
Restarts the timer and returns the time elapsed since the previous start.
Q_CORE_EXPORT void qWarning(const char *,...)
static void resolveLibs()
qint64 nsecsElapsed() const
Returns the number of nanoseconds since this QElapsedTimer was last started.
ULONGLONG(WINAPI * PtrGetTickCount64)(void)
static ClockType clockType()
Returns the clock type that this QElapsedTimer implementation uses.
static quint64 getTickCount()
void * resolve(const char *symbol)
static PtrGetTickCount64 ptrGetTickCount64
qint64 msecsSinceReference() const
Returns the number of milliseconds between last time this QElapsedTimer object was started and its re...
void start()
Starts this timer.
qint64 secsTo(const QElapsedTimer &other) const
Returns the number of seconds between this QElapsedTimer and other.