mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
e021fc21ea
commit
3963e44404
1 changed files with 2 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
||||||
#include <QWheelEvent>
|
#include <QWheelEvent>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
#include <QElapsedTimer>
|
||||||
|
|
||||||
#ifndef QT_NO_DEBUG
|
#ifndef QT_NO_DEBUG
|
||||||
#include <QTableView>
|
#include <QTableView>
|
||||||
|
@ -530,7 +531,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force, bool doClearPictures)
|
||||||
{
|
{
|
||||||
static bool firstCall = true;
|
static bool firstCall = true;
|
||||||
#ifndef SUBSURFACE_MOBILE
|
#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();
|
measureDuration.start();
|
||||||
#else
|
#else
|
||||||
Q_UNUSED(doClearPictures);
|
Q_UNUSED(doClearPictures);
|
||||||
|
|
Loading…
Reference in a new issue