227 static_assert(
sizeof(
t1) ==
sizeof(Duration::rep));
233 t1 =
now.time_since_epoch().count();
279 return std::chrono::steady_clock::now() - then;
312 using namespace std::chrono;
333 using namespace std::chrono;
334 return duration_cast<milliseconds>(
Duration(
t1)).count();
368 using namespace std::chrono;
369 return duration_cast<milliseconds>(durationTo(
other)).count();
384 using namespace std::chrono;
385 return duration_cast<seconds>(durationTo(
other)).count();
435 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 elapsed() exceeds the given timeout, otherwise false.
void start() noexcept
\typealias QElapsedTimer::Duration Synonym for std::chrono::nanoseconds.
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.
class QT6_ONLY(Q_CORE_EXPORT) QChar
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]
static double elapsed(qint64 after, qint64 before)
unsigned long long quint64