Tesseract-Engine/src/Engine/ScopedTimer.h

18 lines
299 B
C
Raw Normal View History

// ScopedTimer.h
#pragma once
#include <string>
#include <chrono>
class Profiler; // Forward declaration
class ScopedTimer {
public:
ScopedTimer(const std::string& name);
~ScopedTimer();
private:
std::string m_Name;
std::chrono::high_resolution_clock::time_point m_StartTime;
};