Commit 201a01b5 authored by David Faure's avatar David Faure

Port to QElapsedTimer

parent a8146e0a
......@@ -22,6 +22,7 @@
#include <QDateTime>
#include <QObject>
#include <QTimer>
#include <QElapsedTimer>
#include <QUrl>
#include <kio/global.h>
......@@ -183,7 +184,7 @@ namespace Konversation
QDateTime m_timeTransferFinished;
QTimer m_loggerTimer;
QTime m_loggerBaseTime; // for calculating CPS
QElapsedTimer m_loggerBaseTime; // for calculating CPS
QList<int> m_transferLogTime;
QList<KIO::fileoffset_t> m_transferLogPosition;
......
......@@ -24,6 +24,7 @@
#include "cipher.h"
#endif
#include <QElapsedTimer>
#include <QTimer>
#include <QString>
......@@ -331,7 +332,7 @@ class Channel : public ChatWindow
QStringList m_BanList;
QTimer m_whoTimer; ///< For continuous auto /WHO
QTime m_whoTimerStarted;
QElapsedTimer m_whoTimerStarted;
QTimer m_fadeActivityTimer; ///< For the smoothing function used in activity sorting
......
......@@ -32,6 +32,7 @@
#include "cipher.h"
#endif
#include <QElapsedTimer>
#include <QTimer>
#include <QPointer>
......@@ -842,7 +843,7 @@ class Server : public QObject
bool m_processingIncoming;
/// Measures the lag between PING and PONG
QTime m_lagTime;
QElapsedTimer m_lagTime;
/// Updates the gui when the lag gets too high
QTimer m_pingResponseTimer;
/// Wait before sending the next PING
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment