[#BCLog-Timer]
= xref:BCLog.adoc[BCLog]::Timer
:relfileprefix: ../
:mrdocs:

RAII&hyphen;style object that outputs timing information to logs&period;

== Synopsis

Declared in `&lt;logging&sol;timer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename TimeType&gt;
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 &quot;started&quot; message&period;
| xref:BCLog/Timer/2destructor.adoc[`&#126;Timer`] [.small]#[destructor]#
| Destroys the timer and logs a completion message with the elapsed time&period;
| xref:BCLog/Timer/Log.adoc[`Log`] 
| Logs a message with the timer prefix and elapsed time&period;
| xref:BCLog/Timer/LogMsg.adoc[`LogMsg`] 
| Formats a log line combining the prefix, the message, and the elapsed time&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
