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

Synopsis

Declared in <logging/timer.h>

std::string
LogMsg(std::string const& msg);

Description

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

Return Value

The formatted log line.

Parameters

Name

Description

msg

Message to include in the formatted line.

Created with MrDocs