File time.h
↰ Parent directory (include_public/anj)
Strongly-typed time utilities used across Anjay Lite.
Definition (include_public/anj/time.h)
Detailed Description
The module provides:
a Enum anj_time_unit_t enumeration of time units,
opaque structs for relative durations and absolute times (Struct anj_time_duration_t, Struct anj_time_monotonic_t, Struct anj_time_real_t),
arithmetic, comparison and conversion helpers,
convenience stringification helpers intended for logging and diagnostics.
All durations are represented internally as signed 64-bit microseconds. Arithmetic operations do not check for overflow. Use with values that fit into the 64-bit range.
Function anj_time_duration_new
Function anj_time_monotonic_new
anj_time_scalar_from_duration
Includes
anj/init.h(File init.h)inttypes.hmath.hstdbool.hstddef.hstdint.h