1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-17 19:18:36 +01:00

Replace use of QTime::start() with QElapsedTimer

This commit is contained in:
Jonas Kvinge 2019-12-21 18:11:54 +01:00
parent 8e256e6d5c
commit ab85b716bb
3 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@
#include <QSharedMemory>
#include <QByteArray>
#include <QDateTime>
#include <QTime>
#include <QElapsedTimer>
#include "singleapplication.h"
#include "singleapplication_p.h"
@ -88,7 +88,7 @@ SingleApplication::SingleApplication(int &argc, char *argv[], bool allowSecondar
}
InstancesInfo* inst = static_cast<InstancesInfo*>(d->memory->data());
QTime time;
QElapsedTimer time;
time.start();
// Make sure the shared memory block is initialised and in consistent state

View File

@ -37,7 +37,7 @@
#include <QSharedMemory>
#include <QByteArray>
#include <QDateTime>
#include <QTime>
#include <QElapsedTimer>
#include "singlecoreapplication.h"
#include "singlecoreapplication_p.h"
@ -89,7 +89,7 @@ SingleCoreApplication::SingleCoreApplication(int &argc, char *argv[], bool allow
}
InstancesInfo* inst = static_cast<InstancesInfo*>(d->memory->data());
QTime time;
QElapsedTimer time;
time.start();
// Make sure the shared memory block is initialised and in consistent state

View File

@ -36,7 +36,7 @@
#include <QByteArray>
#include <QDateTime>
#include <QString>
#include <QTime>
#include <QElapsedTimer>
#include <QtDebug>
#include "chromaprinter.h"
@ -125,7 +125,7 @@ QString Chromaprinter::CreateFingerprint() {
gst_element_get_state(pipeline, nullptr, nullptr, kTimeoutSecs * GST_SECOND);
gst_element_seek(pipeline, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, 0 * GST_SECOND, GST_SEEK_TYPE_SET, kPlayLengthSecs * GST_SECOND);
QTime time;
QElapsedTimer time;
time.start();
// Start playing