AVA2 cross-platform client parity baseline

This commit is contained in:
shen
2026-10-06 00:53:42 -07:00
commit 9f748eb05a
3271 changed files with 1275528 additions and 0 deletions
@@ -0,0 +1,27 @@
#pragma once
#include <chrono>
template <typename T>
class CSimpleTimer
{
public:
CSimpleTimer()
{
m_tStartPoint = std::chrono::high_resolution_clock::now();
}
~CSimpleTimer() = default;
size_t diff()
{
return std::chrono::duration_cast<T>(std::chrono::high_resolution_clock::now() - m_tStartPoint).count();
}
void reset()
{
m_tStartPoint = std::chrono::high_resolution_clock::now();
}
private:
std::chrono::time_point <std::chrono::high_resolution_clock> m_tStartPoint;
};