mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
23 lines
352 B
C++
23 lines
352 B
C++
#pragma once
|
|
|
|
#include "debug/Log.hpp"
|
|
|
|
#include <QElapsedTimer>
|
|
#include <boost/noncopyable.hpp>
|
|
|
|
namespace chatterino {
|
|
|
|
class BenchmarkGuard : boost::noncopyable
|
|
{
|
|
public:
|
|
BenchmarkGuard(const QString &_name);
|
|
~BenchmarkGuard();
|
|
qreal getElapsedMs();
|
|
|
|
private:
|
|
QElapsedTimer timer_;
|
|
QString name_;
|
|
};
|
|
|
|
} // namespace chatterino
|