makefile fix

This commit is contained in:
rektdie committed 2025-04-10 03:32:02 +02:00
1 parent 189f9d49c1
commit 74b6fa0b64
6 files changed
+33 -37

No files matched your search

+5 -5
View File
@@ -3,20 +3,20 @@
class Stopwatch {
private:
std::chrono::high_resolution_clock::time_point start =
std::chrono::high_resolution_clock::now();
std::chrono::steady_clock::time_point start =
std::chrono::steady_clock::now();
public:
void Restart() {
start = std::chrono::high_resolution_clock::now();
start = std::chrono::steady_clock::now();
}
int GetElapsedMS() {
auto current = std::chrono::high_resolution_clock::now();
auto current = std::chrono::steady_clock::now();
return std::chrono::duration_cast<std::chrono::milliseconds>(current - start).count();
}
double GetElapsedSec() {
auto current = std::chrono::high_resolution_clock::now();
auto current = std::chrono::steady_clock::now();
return std::chrono::duration_cast<
std::chrono::duration<double>>(current - start).count();
}