SmolBox.Runtime.Clock (SmolBox v0.1.0)

Copy Markdown View Source

Default managed-runtime clock. Hosts synchronize wall clocks across controllers.

Absolute milliseconds survive restart; monotonic milliseconds bound observation within a process. A clock moving backward cannot extend an in-process stage. Custom clock modules for deterministic tests implement both functions.

Summary

Functions

monotonic()

@spec monotonic() :: integer()

now()

@spec now() :: non_neg_integer()