summaryrefslogtreecommitdiffstats
path: root/tests/manual/textrendering/textperformance/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/textrendering/textperformance/main.cpp')
-rw-r--r--tests/manual/textrendering/textperformance/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/manual/textrendering/textperformance/main.cpp b/tests/manual/textrendering/textperformance/main.cpp
index eb6d09b9c8..8fb3a3c4a2 100644
--- a/tests/manual/textrendering/textperformance/main.cpp
+++ b/tests/manual/textrendering/textperformance/main.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2016 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
@@ -31,7 +31,7 @@
#include <QFontDatabase>
#include <QPainter>
#include <QRandomGenerator>
-#include <QTime>
+#include <QElapsedTimer>
#include <QTimer>
static const int lastMeasurementsCount = 50;
@@ -53,7 +53,7 @@ public:
Q_UNUSED(event);
QPainter p(this);
- if (!m_timer.isNull())
+ if (m_timer.isValid())
m_lastMeasurements.append(m_timer.elapsed());
m_timer.start();
@@ -195,7 +195,7 @@ private:
int m_currentMode;
QList<int> m_lastMeasurements;
- QTime m_timer;
+ QElapsedTimer m_timer;
};
const struct FontBlaster::mode FontBlaster::m_modes[] = {