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>
This commit is contained in:
Thiago Macieira 2012-09-12 14:56:06 +02:00 committed by Qt by Nokia
parent 53a7778b90
commit 81b00670f2

View File

@ -228,7 +228,7 @@ void tst_QSemaphore::tryAcquireWithTimeout()
int fuzz = 50;
QSemaphore semaphore;
QTime time;
QElapsedTimer time;
#define FUZZYCOMPARE(a,e) \
do { \