GetUptime() const
Returns the current device uptime (in msec). The uptime is maintained as number of milliseconds since OpenThread instance was initialized.
GetUptime() const
Returns the current device uptime (in msec). The uptime is maintained as number of milliseconds since OpenThread instance was initialized.
UptimeToString()
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.
MsecToSec()
Converts a given uptime as number of milliseconds to number of seconds.
SecToMsec()
Converts a given uptime as number of seconds to number of milliseconds.
HandleTimer()