Commit 50b5de2d authored by Laurent Montel's avatar Laurent Montel

Port to QElapsedTimer

parent c69a7d3d
Pipeline #8029 passed with stage
in 7 minutes and 1 second
......@@ -35,6 +35,7 @@
#include <QFileInfo>
#include <QHeaderView>
#include <QSaveFile>
#include <QElapsedTimer>
#include "playlistcollection.h"
#include "stringshare.h"
......@@ -57,7 +58,7 @@ CollectionList *CollectionList::instance()
return m_list;
}
static QTime stopwatch;
static QElapsedTimer stopwatch;
void CollectionList::startLoadingCachedItems()
{
......
......@@ -2069,7 +2069,7 @@ QDataStream &operator>>(QDataStream &s, Playlist &p)
bool processEvents()
{
static QTime time = QTime::currentTime();
static QElapsedTimer time;
if(time.elapsed() > 100) {
time.restart();
......
......@@ -39,6 +39,7 @@
#include <QApplication>
#include <QClipboard>
#include <QHeaderView>
#include <QElapsedTimer>
#include "playlist.h"
#include "collectionlist.h"
......@@ -665,7 +666,7 @@ void PlaylistBox::setupUpcomingPlaylist()
void PlaylistBox::slotLoadCachedPlaylists()
{
qCDebug(JUK_LOG) << "Loading cached playlists.";
QTime stopwatch;
QElapsedTimer stopwatch;
stopwatch.start();
Cache::loadPlaylists(this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment