mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
13 lines
337 B
C++
13 lines
337 B
C++
#pragma once
|
|
|
|
#include <QDebug>
|
|
#include <QElapsedTimer>
|
|
#include <boost/current_function.hpp>
|
|
|
|
#define BENCH(x) \
|
|
QElapsedTimer x; \
|
|
x.start();
|
|
|
|
#define MARK(x) \
|
|
qDebug() << BOOST_CURRENT_FUNCTION << __LINE__ \
|
|
<< static_cast<float>(x.nsecsElapsed()) / 100000.0 << "ms";
|