ot::Uptime::UptimeToString() method
Converts an uptime value (number of milliseconds) to a human-readable string. The string follows the format "::." for hours, minutes, seconds and millisecond (if uptime is shorter than one day) or "d.::." (if longer than a day). @p aIncludeMsec can be used to determine whether `.` milliseconds is included or omitted in the resulting string.
Arguments
aUptime
The uptime to convert.
aWriter
A `StringWriter` to append the converted string to.
aIncludeMsec
Whether to include `.` milliseconds in the string.
![]()
Uptime::UptimeToString(duration, string, true);
ot::Uptime::UptimeToString() is called by 3 functions and calls 2 functions:
![]()
ot::Uptime::UptimeToString()
ot::Uptime::UptimeToString() reads 4 variables:
![]()
ot::Uptime::UptimeToString()