#pragma once #include #include class Timer { private: std::chrono::time_point start_; std::chrono::time_point end_; public: Timer(); void start(); void stop(); long us() const; }; std::ostream &operator<<(std::ostream &os, const Timer &timer);