summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-02-18 17:27:45 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-17 10:54:17 (GMT)
commitcd33d38ce0067719b0215264a22685a91b2e08dc (patch)
tree6dce3760c20b9631ca3be96b59bc0351381cedcb /src/corelib/io/qprocess.cpp
parent8c9446cd2058fde086df92f6b7d97e4770cf8dc6 (diff)
downloadQt-cd33d38ce0067719b0215264a22685a91b2e08dc.zip
Qt-cd33d38ce0067719b0215264a22685a91b2e08dc.tar.gz
Qt-cd33d38ce0067719b0215264a22685a91b2e08dc.tar.bz2
Port QtCore uses of QTime as a stopwatch to QTimestamp.
tst_qtimeline improvement: from 56187446 to 53915928 (callgrind)
Diffstat (limited to 'src/corelib/io/qprocess.cpp')
-rw-r--r--src/corelib/io/qprocess.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp
index 12a992a..6250094 100644
--- a/src/corelib/io/qprocess.cpp
+++ b/src/corelib/io/qprocess.cpp
@@ -88,7 +88,7 @@ QT_END_NAMESPACE
#include "qprocess_p.h"
#include <qbytearray.h>
-#include <qdatetime.h>
+#include <qtimestamp.h>
#include <qcoreapplication.h>
#include <qsocketnotifier.h>
#include <qtimer.h>
@@ -1639,7 +1639,7 @@ bool QProcess::waitForBytesWritten(int msecs)
if (d->processState == QProcess::NotRunning)
return false;
if (d->processState == QProcess::Starting) {
- QTime stopWatch;
+ QTimestamp stopWatch;
stopWatch.start();
bool started = waitForStarted(msecs);
if (!started)
@@ -1676,7 +1676,7 @@ bool QProcess::waitForFinished(int msecs)
if (d->processState == QProcess::NotRunning)
return false;
if (d->processState == QProcess::Starting) {
- QTime stopWatch;
+ QTimestamp stopWatch;
stopWatch.start();
bool started = waitForStarted(msecs);
if (!started)