Files
trail-mate/modules/core_sys/include/sys/clock.h
T
vicliu d320b6511d Unify PlatformIO and ESP-IDF around a shared UI/runtime shellRefactor/repo structure (#11)
* Unify PlatformIO and ESP-IDF around a shared UI/runtime shell
2026-03-12 01:17:46 +08:00

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