diff options
author | jan Iversen <jani@libreoffice.org> | 2018-05-29 12:49:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-05-29 12:48:32 -0700 |
commit | 3963e44404738d3d01d4051094b05f81f0a181e0 (patch) | |
tree | 68baf82e26d922e49b473a44df80c1f43779fc27 /profile-widget/profilewidget2.cpp | |
parent | e021fc21ea8108f73051490d13a2151cee34aebb (diff) | |
download | subsurface-3963e44404738d3d01d4051094b05f81f0a181e0.tar.gz |
desktop: use QElapsedTimer to measure time
QElapsedTimer is the preferred timer for measuring time
so lets use it.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index dc26ea520..25bff64ea 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -33,6 +33,7 @@ #include <QWheelEvent> #include <QSettings> #include <QMenu> +#include <QElapsedTimer> #ifndef QT_NO_DEBUG #include <QTableView> @@ -530,7 +531,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force, bool doClearPictures) { static bool firstCall = true; #ifndef SUBSURFACE_MOBILE - QTime measureDuration; // let's measure how long this takes us (maybe we'll turn of TTL calculation later + QElapsedTimer measureDuration; // let's measure how long this takes us (maybe we'll turn of TTL calculation later measureDuration.start(); #else Q_UNUSED(doClearPictures); |