loading images on their own thread

This commit is contained in:
fourtf
2018-08-09 18:39:46 +02:00
parent bb76a632f4
commit 6344fa6b23
5 changed files with 96 additions and 30 deletions
+3 -3
View File
@@ -1,6 +1,7 @@
#pragma once
#include <QDebug>
#include "debug/Log.hpp"
#include <QElapsedTimer>
#include <boost/current_function.hpp>
#include <boost/noncopyable.hpp>
@@ -29,8 +30,7 @@ public:
~BenchmarkGuard()
{
qDebug() << this->name << float(timer.nsecsElapsed()) / 1000000.0f
<< "ms";
Log("{} {} ms", this->name, float(timer.nsecsElapsed()) / 1000000.0f);
}
qreal getElapsedMs()