mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
877a4e05fa
The use has been removed from the following files: * Atomic.hpp * SignalVector.hpp * Benchmark.hpp * IvrApi * LoggingChannel.hpp * Singleton.hpp * Image.hpp * PrecompiledHeader.hpp * Message.hpp * MessageElement.hpp * MessageLayout.hpp * MessageLayoutElement.hpp * Fonts.hpp (just include)
27 lines
518 B
C++
27 lines
518 B
C++
#pragma once
|
|
|
|
#include <QElapsedTimer>
|
|
#include <QString>
|
|
|
|
namespace chatterino {
|
|
|
|
class BenchmarkGuard
|
|
{
|
|
public:
|
|
BenchmarkGuard(const QString &_name);
|
|
~BenchmarkGuard();
|
|
|
|
BenchmarkGuard(const BenchmarkGuard &) = delete;
|
|
BenchmarkGuard &operator=(const BenchmarkGuard &) = delete;
|
|
|
|
BenchmarkGuard(BenchmarkGuard &&) = delete;
|
|
BenchmarkGuard &operator=(BenchmarkGuard &&) = delete;
|
|
|
|
qreal getElapsedMs();
|
|
|
|
private:
|
|
QElapsedTimer timer_;
|
|
QString name_;
|
|
};
|
|
|
|
} // namespace chatterino
|