mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-14 04:47:14 +00:00
15 lines
254 B
C++
15 lines
254 B
C++
#pragma once
|
|
|
|
#include <chrono>
|
|
#include <string>
|
|
|
|
class PerformanceTimer {
|
|
private:
|
|
std::chrono::steady_clock::time_point m_startTime;
|
|
|
|
public:
|
|
PerformanceTimer();
|
|
void Reset();
|
|
void PrintElapsedTime(const std::wstring& description);
|
|
};
|