Internal Interface Wrap
API reference
Loading...
Searching...
No Matches
Namespaces | Functions
hf_time Namespace Reference

Namespaces

namespace  esp32
 

Functions

std::uint64_t MonotonicMs () noexcept
 Convenience milliseconds view of the monotonic counter.
 
std::uint64_t ElapsedUs (std::uint64_t t0) noexcept
 Convenience: elapsed-since-t0 in microseconds.
 

Function Documentation

◆ ElapsedUs()

std::uint64_t hf_time::ElapsedUs ( std::uint64_t  t0)
inlinenoexcept

Convenience: elapsed-since-t0 in microseconds.

◆ MonotonicMs()

std::uint64_t hf_time::MonotonicMs ( )
inlinenoexcept

Convenience milliseconds view of the monotonic counter.

Implemented in terms of MonotonicUs() so the underlying timebase stays consistent across Us and Ms queries. Resolution is still 1 µs internally; only the unit conversion differs.