summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/thread/qsemaphore
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-09-12 14:56:06 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-13 22:40:34 +0200
commit81b00670f2264554e4d928db479b1e903481f038 (patch)
tree7c93e66f9663f97a14519905f546dd358b0d5a96 /tests/auto/corelib/thread/qsemaphore
parent53a7778b90618e1bab75e91e08d7bff49beb0241 (diff)
Use QElapsedTimer instead of QTime to measure elapsed time
QElaspedTimer is a lot more efficient. Change-Id: I66d9514108f800a45181d8960b01a5e7d3fa9e80 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'tests/auto/corelib/thread/qsemaphore')
-rw-r--r--tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp b/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp
index 597178f079..a9de9c3716 100644
--- a/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp
+++ b/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp
@@ -228,7 +228,7 @@ void tst_QSemaphore::tryAcquireWithTimeout()
int fuzz = 50;
QSemaphore semaphore;
- QTime time;
+ QElapsedTimer time;
#define FUZZYCOMPARE(a,e) \
do { \