#pragma once #include #include struct Timer { using Clock = std::chrono::high_resolution_clock; // Creates a new timer. A timer is always running. Timer(); // Restart/reset the timer. void Reset(); // Resets timer and prints a message like " took 5ms" void ResetAndPrint(const std::string& message); // Raw start time. std::chrono::time_point start; };