summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/tools/qelapsedtimer.h5
-rw-r--r--tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp10
2 files changed, 3 insertions, 12 deletions
diff --git a/src/corelib/tools/qelapsedtimer.h b/src/corelib/tools/qelapsedtimer.h
index 827359b..0d6f0be 100644
--- a/src/corelib/tools/qelapsedtimer.h
+++ b/src/corelib/tools/qelapsedtimer.h
@@ -62,11 +62,6 @@ public:
static ClockType clockType();
static bool isMonotonic();
- static inline QElapsedTimer started()
- { QElapsedTimer t; t.start(); return t; }
- static inline QElapsedTimer invalid()
- { QElapsedTimer t; t.invalidate(); return t; }
-
void start();
qint64 restart();
void invalidate();
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()