diff options
author | Niklas Kurkisuo <ext-niklas.kurkisuo@nokia.com> | 2011-01-06 08:39:14 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2011-01-06 11:44:21 (GMT) |
commit | bbf604d11d707f10337cab5b955388e95c180805 (patch) | |
tree | e1ba076e128382c6b16b16c4b3f9dbb128cf9988 /src/network/kernel/qhostinfo.cpp | |
parent | 09d2b70f8a23b6c7809117a3c3a77f1ad188957b (diff) | |
download | Qt-bbf604d11d707f10337cab5b955388e95c180805.zip Qt-bbf604d11d707f10337cab5b955388e95c180805.tar.gz Qt-bbf604d11d707f10337cab5b955388e95c180805.tar.bz2 |
QHostInfoCache: Use QElapsedTime instead of QTime
Use QElapsedTime instead of QTime for performance gain. See QT-2965 for
more info.
Task-number: QTBUG-16468
Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/kernel/qhostinfo.cpp')
-rw-r--r-- | src/network/kernel/qhostinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp index c8fc45e..0c734d5 100644 --- a/src/network/kernel/qhostinfo.cpp +++ b/src/network/kernel/qhostinfo.cpp @@ -720,7 +720,7 @@ void QHostInfoCache::put(const QString &name, const QHostInfo &info) QHostInfoCacheElement* element = new QHostInfoCacheElement(); element->info = info; - element->age = QTime(); + element->age = QElapsedTimer(); element->age.start(); QMutexLocker locker(&this->mutex); |