Simple timing utility that prints elapsed time for a scope or code block.
Public Types
-
using Clock = std::chrono::high_resolution_clock
-
using TimePoint = std::chrono::time_point<Clock>
-
using Duration = std::chrono::duration<double>
Public Functions
-
inline Timer()
-
inline explicit Timer(const std::string &label)
-
Timer(const Timer&) = default
-
Timer(Timer&&) = default
-
Timer &operator=(const Timer&) = default
-
Timer &operator=(Timer&&) = default
-
inline ~Timer()
Public Members
-
std::string label
-
TimePoint start_time