RAII‐style object that outputs timing information to logs.
Synopsis
Declared in <logging/timer.h>
template<typename TimeType>
class Timer;
Member Functions
Name |
Description |
|
Constructs the timer, records the start time, and logs a "started" message. |
|
Destroys the timer and logs a completion message with the elapsed time. |
Logs a message with the timer prefix and elapsed time. |
|
Formats a log line combining the prefix, the message, and the elapsed time. |
Created with MrDocs