src/network/socket/qlocalsocket_unix.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
--- a/src/network/socket/qlocalsocket_unix.cpp	Wed Jun 23 19:07:03 2010 +0300
+++ b/src/network/socket/qlocalsocket_unix.cpp	Tue Jul 06 15:10:48 2010 +0300
@@ -52,9 +52,9 @@
 #include <fcntl.h>
 #include <errno.h>
 
-#include <qdatetime.h>
 #include <qdir.h>
 #include <qdebug.h>
+#include <qelapsedtimer.h>
 
 #ifdef Q_OS_VXWORKS
 #  include <selectLib.h>
@@ -534,7 +534,7 @@
 
     int result = -1;
     // on Linux timeout will be updated by select, but _not_ on other systems.
-    QTime timer;
+    QElapsedTimer timer;
     timer.start();
     while (state() == ConnectingState
            && (-1 == msec || timer.elapsed() < msec)) {