mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 05:40:27 +00:00
ca3830fac2
This commit adds a new module `Uptime` which tracks the number of milliseconds since OpenThread stack initialization as an `uint64_t` value. It also adds public OT APIs to get the current uptime value (either as the number of milliseconds or in human-readable string format like "2 days 12:45:12.762"). A CLI `uptime` command is also added. This feature can be enabled using the newly added config option `OPENTHREAD_CONFIG_UPTIME_ENABLE` (or the related CMake `OT_UPTIME` option).