diff options
Diffstat (limited to 'src/corelib/kernel/qtimerinfo_unix_p.h')
-rw-r--r-- | src/corelib/kernel/qtimerinfo_unix_p.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/corelib/kernel/qtimerinfo_unix_p.h b/src/corelib/kernel/qtimerinfo_unix_p.h index cff02b6da8..c397703f58 100644 --- a/src/corelib/kernel/qtimerinfo_unix_p.h +++ b/src/corelib/kernel/qtimerinfo_unix_p.h @@ -53,6 +53,8 @@ // We mean it. // +// #define QTIMERINFO_DEBUG + #include "qabstracteventdispatcher.h" #include <sys/time.h> // struct timeval @@ -64,9 +66,15 @@ struct QTimerInfo { int id; // - timer identifier int interval; // - timer interval in milliseconds Qt::TimerType timerType; // - timer type - timeval timeout; // - when to sent event + timeval expected; // when timer is expected to fire + timeval timeout; // - when to actually fire QObject *obj; // - object to receive event QTimerInfo **activateRef; // - ref from activateTimers + +#ifdef QTIMERINFO_DEBUG + float cumulativeError; + uint count; +#endif }; class QTimerInfoList : public QList<QTimerInfo*> |