Internal Interface Wrap
API reference
Loading...
Searching...
No Matches
Functions
hf_time::esp32 Namespace Reference

Functions

void InitMonotonic () noexcept
 No-op on ESP-IDF: the high-resolution timer is started by the system bootstrap before app_main runs.
 
std::uint64_t MonotonicUs () noexcept
 Microseconds since boot from the hardware-backed timer.
 

Function Documentation

◆ InitMonotonic()

void hf_time::esp32::InitMonotonic ( )
inlinenoexcept

No-op on ESP-IDF: the high-resolution timer is started by the system bootstrap before app_main runs.

Provided so callers writing portable init code can keep a single call site regardless of target.

◆ MonotonicUs()

std::uint64_t hf_time::esp32::MonotonicUs ( )
inlinenoexcept

Microseconds since boot from the hardware-backed timer.

esp_timer_get_time() returns int64_t but is documented to be non-negative once started; widening to uint64_t matches the unsigned arithmetic used at call sites (deltas, comparisons).

Safe from any task or ISR.