Commit 5dd59771 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to QElapsedTimer

parent b49d5cfd
......@@ -35,6 +35,7 @@
#include <QStandardPaths>
#include <QTextBrowser>
#include <QIcon>
#include <QElapsedTimer>
#include <klocalizedstring.h>
#include <KSharedConfig>
......@@ -552,7 +553,7 @@ void InteractiveConsole::evaluateScript()
QTextBlockFormat block = cursor.blockFormat();
block.setLeftMargin(10);
cursor.insertBlock(block, format);
QTime t;
QElapsedTimer t;
t.start();
if (m_mode == PlasmaConsole) {
......
......@@ -31,6 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <QX11Info>
#include <QDebug>
#include <QElapsedTimer>
#include <config-workspace.h>
......@@ -168,7 +169,7 @@ void KSMServer::performLegacySessionSave()
}
// Wait for change in WM_COMMAND with timeout
XFlush(newdisplay);
QTime start = QTime::currentTime();
QElapsedTimer start;
while (awaiting_replies > 0) {
if (XPending(newdisplay)) {
/* Process pending event */
......
......@@ -35,6 +35,7 @@
#include <QMimeType>
#include <QMutex>
#include <QMutexLocker>
#include <QElapsedTimer>
#include <QDebug>
#include <KIO/PreviewJob>
......@@ -534,7 +535,7 @@ bool BackgroundFinder::isAcceptableSuffix(const QString &suffix)
void BackgroundFinder::run()
{
QTime t;
QElapsedTimer t;
t.start();
QStringList papersFound;
......
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