|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <session_stats.h>
Static Public Member Functions | |
| static void | begin () |
| static void | tick (uint32_t uptimeMs) |
| static uint32_t | previousSessionUptimeSeconds () |
Tracks uptime across boots using a small persistent session record. The service stores checkpoints rather than writing flash every UI tick, so callers can report the previous session while limiting flash wear.
|
static |
Load prior-session metadata and start the current uptime counter.
|
static |
Return the last persisted uptime, in seconds, from the previous boot.
|
static |
Persist a checkpoint only when the configured reporting interval elapsed.