From 3963e44404738d3d01d4051094b05f81f0a181e0 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 29 May 2018 12:49:47 +0200 Subject: [PATCH] desktop: use QElapsedTimer to measure time QElapsedTimer is the preferred timer for measuring time so lets use it. Signed-off-by: Jan Iversen --- profile-widget/profilewidget2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include #include +#include #ifndef QT_NO_DEBUG #include @@ -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);