timer stops

This commit is contained in:
BrSh31
2025-12-08 15:50:51 +01:00
parent fba740c35c
commit 89d25ccdf6
3 changed files with 66 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include <chrono>
class Timer {
public:
void start();
void stop();
long long elapsedMs() const;
private:
std::chrono::time_point<std::chrono::high_resolution_clock> startTime;
std::chrono::time_point<std::chrono::high_resolution_clock> endTime;
bool running = false;
};