Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qtimerinfo_unix.cpp File Reference
#include <qelapsedtimer.h>
#include <qcoreapplication.h>
#include "private/qcore_unix_p.h"
#include "private/qtimerinfo_unix_p.h"
#include "private/qobject_p.h"
#include "private/qabstracteventdispatcher_p.h"
#include <sys/times.h>
+ Include dependency graph for qtimerinfo_unix.cpp:

Go to the source code of this file.

Functions

static constexpr milliseconds roundToMillisecond (nanoseconds val)
 
static constexpr seconds roundToSecs (milliseconds msecs)
 
static void calculateCoarseTimerTimeout (QTimerInfo *t, steady_clock::time_point now)
 
static void calculateNextTimeout (QTimerInfo *t, steady_clock::time_point now)
 

Variables

QT_BEGIN_NAMESPACE Q_CORE_EXPORT bool qt_disable_lowpriority_timers =false
 

Function Documentation

◆ calculateCoarseTimerTimeout()

static void calculateCoarseTimerTimeout ( QTimerInfo t,
steady_clock::time_point  now 
)
static

Definition at line 98 of file qtimerinfo_unix.cpp.

References base, now, Q_ASSERT, qMax(), and qMin().

Referenced by calculateNextTimeout().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ calculateNextTimeout()

static void calculateNextTimeout ( QTimerInfo t,
steady_clock::time_point  now 
)
static

Definition at line 212 of file qtimerinfo_unix.cpp.

References calculateCoarseTimerTimeout(), Qt::CoarseTimer, now, Qt::PreciseTimer, and Qt::VeryCoarseTimer.

+ Here is the call graph for this function:

◆ roundToMillisecond()

static constexpr milliseconds roundToMillisecond ( nanoseconds  val)
staticconstexpr

Definition at line 63 of file qtimerinfo_unix.cpp.

Referenced by QTimerInfoList::remainingDuration(), and QTimerInfoList::timerWait().

+ Here is the caller graph for this function:

◆ roundToSecs()

static constexpr seconds roundToSecs ( milliseconds  msecs)
staticconstexpr

Definition at line 79 of file qtimerinfo_unix.cpp.

Variable Documentation

◆ qt_disable_lowpriority_timers

QT_BEGIN_NAMESPACE Q_CORE_EXPORT bool qt_disable_lowpriority_timers =false

Definition at line 21 of file qtimerinfo_unix.cpp.

Referenced by QTimerInfoList::activateTimers().