timer stops
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user