clock.bend relies on unsafe/foreign
raw source on the hub · import bend-kit-scheduler@0.1.0.0/clock.bend as Clock
Monotonic clock adapter for consumers, outside the pure scheduler core.
2 imports
import Base import bend-kit-time@0.1.2.1/time.bend as Time
Definitions
def micros source · line 7 · raw
@r:Pair(U32, Pair(U32, U32)) -> Nat
Microseconds avoid exceeding native Nat's 2^48-1 ceiling on normal uptimes. Crossing that ceiling reports Bend's explicit Nat-overflow error, never wraps.
def now_us source · line 12 · raw
IO(Nat)
def now source · line 17 · raw
IO(Nat)