7#include <QtCore/qcompare.h>
8#include <QtCore/qglobal.h>
21 "Not supported anymore. Use PerformanceCounter instead."),
28 using TimePoint = std::chrono::time_point<std::chrono::steady_clock, Duration>;
33 static
bool isMonotonic() noexcept;
35 void start() noexcept;
37 void invalidate() noexcept;
38 bool isValid() const noexcept;
40 Duration durationElapsed() const noexcept;
41 qint64 nsecsElapsed() const noexcept;
45 qint64 msecsSinceReference() const noexcept;
54 return lhs.t1 == rhs.t1 && lhs.t2 == rhs.t2;
64#if defined(__cpp_lib_three_way_comparison)
65 friend std::strong_ordering
constexpr QElapsedTimer()=default
ClockType
This enum contains the different clock types that QElapsedTimer may use.
std::chrono::nanoseconds Duration
friend bool operator>(const QElapsedTimer &lhs, const QElapsedTimer &rhs) noexcept
friend bool operator<=(const QElapsedTimer &lhs, const QElapsedTimer &rhs) noexcept
friend bool operator>=(const QElapsedTimer &lhs, const QElapsedTimer &rhs) noexcept
std::chrono::time_point< std::chrono::steady_clock, Duration > TimePoint
Combined button and popup list for selecting options.
constexpr Qt::strong_ordering compareThreeWay(LeftInt lhs, RightInt rhs) noexcept
#define Q_DECLARE_EQUALITY_COMPARABLE(...)
#define Q_DECL_ENUMERATOR_DEPRECATED_X(x)
bool comparesEqual(const QDir &lhs, const QDir &rhs)
static qint64 msecsTo(const QDateTime &from, const QDateTime &to)
GLbitfield GLuint64 timeout
[4]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t1
[4]
static double elapsed(qint64 after, qint64 before)
Qt::weak_ordering compareThreeWay(const QUrl &lhs, const QUrl &rhs)