7#include <QtCore/qglobal.h>
20 "Not supported anymore. Use PerformanceCounter instead."),
27 using TimePoint = std::chrono::time_point<std::chrono::steady_clock, Duration>;
32 static
bool isMonotonic() noexcept;
34 void start() noexcept;
36 void invalidate() noexcept;
37 bool isValid() const noexcept;
39 Duration durationElapsed() const noexcept;
40 qint64 nsecsElapsed() const noexcept;
44 qint64 msecsSinceReference() const noexcept;
50 {
return lhs.t1 == rhs.t1 && lhs.t2 == rhs.t2; }
52 {
return !(lhs == rhs); }
constexpr QElapsedTimer()=default
ClockType
This enum contains the different clock types that QElapsedTimer may use.
friend bool operator!=(const QElapsedTimer &lhs, const QElapsedTimer &rhs) noexcept
Returns true if lhs and rhs contain different times, false otherwise.
std::chrono::nanoseconds Duration
std::chrono::time_point< std::chrono::steady_clock, Duration > TimePoint
Combined button and popup list for selecting options.
#define Q_DECL_ENUMERATOR_DEPRECATED_X(x)
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 bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2)
static double elapsed(qint64 after, qint64 before)