216 static_assert(
sizeof(
t1) ==
sizeof(Duration::rep));
222 t1 =
now.time_since_epoch().count();
268 return std::chrono::steady_clock::now() - then;
301 using namespace std::chrono;
322 using namespace std::chrono;
323 return duration_cast<milliseconds>(
Duration(
t1)).count();
357 using namespace std::chrono;
358 return duration_cast<milliseconds>(durationTo(
other)).count();
373 using namespace std::chrono;
374 return duration_cast<seconds>(durationTo(
other)).count();
422 return lhs.t1 < rhs.t1;
qint64 msecsSinceReference() const noexcept
Returns the number of milliseconds between last time this QElapsedTimer object was started and its re...
void invalidate() noexcept
Marks this QElapsedTimer object as invalid.
Duration durationTo(const QElapsedTimer &other) const noexcept
Duration durationElapsed() const noexcept
qint64 elapsed() const noexcept
Returns the number of milliseconds since this QElapsedTimer was last started.
qint64 restart() noexcept
Restarts the timer and returns the number of milliseconds elapsed since the previous start.
static bool isMonotonic() noexcept
Returns true if this is a monotonic clock, false otherwise.
ClockType
This enum contains the different clock types that QElapsedTimer may use.
bool hasExpired(qint64 timeout) const noexcept
Returns true if this QElapsedTimer has already expired by timeout milliseconds (that is,...
void start() noexcept
Starts this timer.
bool isValid() const noexcept
Returns false if the timer has never been started or invalidated by a call to invalidate().
qint64 secsTo(const QElapsedTimer &other) const noexcept
Returns the number of seconds between this QElapsedTimer and other.
std::chrono::nanoseconds Duration
qint64 nsecsElapsed() const noexcept
static ClockType clockType() noexcept
Returns the clock type that this QElapsedTimer implementation uses.
std::chrono::time_point< std::chrono::steady_clock, Duration > TimePoint
qint64 msecsTo(const QElapsedTimer &other) const noexcept
Returns the number of milliseconds between this QElapsedTimer and other.
Combined button and popup list for selecting options.
bool operator<(const QElapsedTimer &lhs, const QElapsedTimer &rhs) noexcept
static const qint64 invalidData
GLbitfield GLuint64 timeout
[4]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t1
[4]
QT_BEGIN_NAMESPACE class QT6_ONLY(Q_CORE_EXPORT) QReadWriteLock
static double elapsed(qint64 after, qint64 before)
unsigned long long quint64