Skip to main content

Module stdlib_time

Module stdlib_time 

Source
Expand description

Native time module for precision timing.

Exports: time.now(), time.sleep(ms), time.benchmark(fn, iterations)

Phase 1.B (ADR-006 §2.7.4): the variadic register_typed_function / register_typed_async_function helpers are re-introduced at the KindedSlot shape (see marshal.rs). Bodies are migrated to use the current TypedReturn / ConcreteReturn taxonomy in place of the deleted TypedReturn::Instant / TypedReturn::Unit / TypedReturn::F64 / TypedReturn::TypedObject(_, TypedReturn::*) shapes.

Functions§

create_time_module
Create the time module with precision timing functions.