From 5fb9a6a9024eaf7b94f20eefcffce928adeaed78 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 8 Feb 2016 23:28:21 +0100 Subject: Gather more timings --- tests/dummyresourcetest.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index c5b2f30..bfa4885 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp @@ -19,6 +19,9 @@ class DummyResourceTest : public QObject { Q_OBJECT + + QTime time; + private Q_SLOTS: void initTestCase() { @@ -29,16 +32,18 @@ private Q_SLOTS: ResourceConfig::addResource("org.kde.dummy.instance1", "org.kde.dummy"); } - void cleanup() - { - Sink::Store::removeDataFromDisk(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); - } - void init() { qDebug(); qDebug() << "-----------------------------------------"; qDebug(); + time.start(); + } + + void cleanup() + { + qDebug() << "Test took " << time.elapsed(); + Sink::Store::removeDataFromDisk(QByteArray("org.kde.dummy.instance1")).exec().waitForFinished(); } void testProperty() -- cgit v1.2.3