AITrace.Clock (AITrace v0.2.0)

Copy Markdown View Source

Local clock-domain helpers for AITrace timing evidence.

Monotonic values are local-duration evidence only. Exported traces and spans also carry wall-clock timestamps and a clock-domain descriptor.

Summary

Functions

clock_domain(opts \\ [])

@spec clock_domain(keyword()) :: map()

duration_microseconds(start_time, end_time)

@spec duration_microseconds(integer(), integer() | nil) :: integer() | nil

monotonic_time()

@spec monotonic_time() :: integer()

wall_time()

@spec wall_time() :: DateTime.t()

wall_time_iso8601(timestamp)

@spec wall_time_iso8601(DateTime.t() | nil) :: String.t() | nil