// -*- mode: c++ -*- #pragma once #include "../time.h" #include namespace atlas::time { class HighResolutionTimer : public Timer { public: void start() override { m_start = std::chrono::high_resolution_clock::now(); } auto elapsed() const -> duration_type override { return std::chrono::duration_cast(std::chrono::high_resolution_clock::now() - m_start); } private: std::chrono::high_resolution_clock::time_point m_start; }; }