Tay.Execution.Clock behaviour (tay v1.3.3)

Copy Markdown View Source

Runtime clock boundary. Wall time determines eligibility; monotonic time only measures callback deadlines and bounded wakeups. Neither is called by replay. A trusted test provider may implement the same two zero-argument callbacks.

Summary

Callbacks

monotonic_ms()

@callback monotonic_ms() :: integer()

wall_ms()

@callback wall_ms() :: non_neg_integer()

Functions

delay_until(due, wall, wake_ms \\ 1000)

Bounds a wall-time recheck; a timer is not authorization to execute.

monotonic(provider \\ __MODULE__)

monotonic_ms()

wall(provider \\ __MODULE__)

wall_ms()