summaryrefslogtreecommitdiffstats
path: root/tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-03-01 15:51:09 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-17 10:54:20 (GMT)
commit06ffa232f1920fa5aa857e644df08ef52b62a0b3 (patch)
treedf056dc1c464e3ea92b18729d4e95d4159d7b6d8 /tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp
parent873305b9d85de44fc9e2150697822c8d3ccdef65 (diff)
downloadQt-06ffa232f1920fa5aa857e644df08ef52b62a0b3.zip
Qt-06ffa232f1920fa5aa857e644df08ef52b62a0b3.tar.gz
Qt-06ffa232f1920fa5aa857e644df08ef52b62a0b3.tar.bz2
remove, fixup
Diffstat (limited to 'tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp')
-rw-r--r--tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp b/tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp
index 5f797a3..5c3d4f8 100644
--- a/tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp
+++ b/tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp
@@ -20,7 +20,9 @@ void tst_QElapsedTimer::statics()
{
qDebug() << "Clock type is" << QElapsedTimer::clockType();
qDebug() << "Said clock is" << (QElapsedTimer::isMonotonic() ? "monotonic" : "not monotonic");
- qDebug() << "Current time is" << QElapsedTimer::started().msecsSinceReference();
+ QElapsedTimer t;
+ t.start();
+ qDebug() << "Current time is" << t.msecsSinceReference();
}
void tst_QElapsedTimer::validity()
@@ -35,12 +37,6 @@ void tst_QElapsedTimer::validity()
t.invalidate();
QVERIFY(!t.isValid());
-
- t = QElapsedTimer::started();
- QVERIFY(t.isValid());
-
- t = QElapsedTimer::invalid();
- QVERIFY(!t.isValid());
}
void tst_QElapsedTimer::basics()