RAII‐style object that outputs timing information to logs.

Synopsis

Declared in <logging/timer.h>

template<typename TimeType>
class Timer;

Member Functions

Name

Description

Timer [constructor]

Constructs the timer, records the start time, and logs a "started" message.

~Timer [destructor]

Destroys the timer and logs a completion message with the elapsed time.

Log

Logs a message with the timer prefix and elapsed time.

LogMsg

Formats a log line combining the prefix, the message, and the elapsed time.

Created with MrDocs