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

Formats a log line combining the prefix, the message, and the elapsed time&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
LogMsg(std::string const& msg);
----

== Description

The elapsed time is rendered in the units of TimeType (microseconds, milliseconds, or seconds)&period; If no start time was recorded, only the prefix and message are returned&period;

== Return Value

The formatted log line&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *msg*
| Message to include in the formatted line&period;
|===


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