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:
parent
53a7778b90
commit
81b00670f2
@ -228,7 +228,7 @@ void tst_QSemaphore::tryAcquireWithTimeout()
|
||||
int fuzz = 50;
|
||||
|
||||
QSemaphore semaphore;
|
||||
QTime time;
|
||||
QElapsedTimer time;
|
||||
|
||||
#define FUZZYCOMPARE(a,e) \
|
||||
do { \
|
||||
|
Loading…
Reference in New Issue
Block a user