[#BCLog-Timer] = xref:BCLog.adoc[BCLog]::Timer :relfileprefix: ../ :mrdocs: RAII‐style object that outputs timing information to logs. == Synopsis Declared in `<logging/timer.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename TimeType> class Timer; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BCLog/Timer/2constructor.adoc[`Timer`] [.small]#[constructor]# | Constructs the timer, records the start time, and logs a "started" message. | xref:BCLog/Timer/2destructor.adoc[`~Timer`] [.small]#[destructor]# | Destroys the timer and logs a completion message with the elapsed time. | xref:BCLog/Timer/Log.adoc[`Log`] | Logs a message with the timer prefix and elapsed time. | xref:BCLog/Timer/LogMsg.adoc[`LogMsg`] | Formats a log line combining the prefix, the message, and the elapsed time. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#