Provides a timer for measuring lag. More...
#include <IrcLagTimer>
Inherits QObject.
Signals | |
void | lagChanged (qint64 lag) |
Public Member Functions | |
IrcLagTimer (QObject *parent=nullptr) | |
~IrcLagTimer () override | |
IrcConnection * | connection () const |
int | interval () const |
qint64 | lag () const |
|
explicit |
Constructs a new lag timer with parent.
|
override |
Destructs the lag timer.
IrcConnection * IrcLagTimer::connection | ( | ) | const |
This property holds the associated connection.
int IrcLagTimer::interval | ( | ) | const |
This property holds the lag measurement interval in seconds.
The default value is 60
seconds. A value equal to or less than 0
seconds disables the lag measurement.
qint64 IrcLagTimer::lag | ( | ) | const |
This property holds the current lag in milliseconds.
The value is -1
when
|
signal |
This signal is emitted when the lag has changed.