mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-07-02 10:01:43 +00:00
d320b6511d
* Unify PlatformIO and ESP-IDF around a shared UI/runtime shell
19 lines
356 B
C++
19 lines
356 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace sys
|
|
{
|
|
|
|
using MillisProvider = uint32_t (*)();
|
|
using EpochSecondsProvider = uint32_t (*)();
|
|
|
|
void set_millis_provider(MillisProvider provider);
|
|
void set_epoch_seconds_provider(EpochSecondsProvider provider);
|
|
|
|
uint32_t millis_now();
|
|
uint32_t uptime_seconds_now();
|
|
uint32_t epoch_seconds_now();
|
|
|
|
} // namespace sys
|