Switch to QT Category logging (#2206)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "Benchmark.hpp"
|
||||
#include "common/QLogging.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
@@ -10,8 +11,8 @@ BenchmarkGuard::BenchmarkGuard(const QString &_name)
|
||||
|
||||
BenchmarkGuard::~BenchmarkGuard()
|
||||
{
|
||||
qDebug() << this->name_ << float(timer_.nsecsElapsed()) / 1000000.0f
|
||||
<< "ms";
|
||||
qCDebug(chatterinoBenchmark)
|
||||
<< this->name_ << float(timer_.nsecsElapsed()) / 1000000.0f << "ms";
|
||||
}
|
||||
|
||||
qreal BenchmarkGuard::getElapsedMs()
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDebug>
|
||||
#include <QElapsedTimer>
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user