#pragma once #include namespace lt { /** Simple timer class to keep track of the elapsed time. */ class Timer { public: using Clock = std::chrono::steady_clock; using Duration = std::chrono::duration; using Timepoint = std::chrono::time_point; Timer(Timepoint start = Clock::now()); void reset(Timepoint start = Clock::now()); [[nodiscard]] auto elapsed_time() const -> Duration; private: Timepoint m_start; }; } // namespace lt