code wiki / (root) / nx_clock_test.nx

nx_clock_test.nx

buildroot/runtime/nx_clock_test.nx

1823 B43 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic clock
docsdependenciesstructsconstsfunctions

about

nx_clock_test.nx -- verify clock primitive returns valid + monotonic times. Asserts on STRUCTURE not absolute time values (no Y2K-style hardcodes). - monotonic clock advances or stays equal across reads - realtime clock returns nonzero value (clock is initialized) - elapsed_us is non-negative for any prior start_ns - elapsed_ms is non-negative

dependencies 2 imports · 0 importers

syscalls.nx nx_clock_full.nx nx_clock_test.nx

imports: syscalls.nxnx_clock_full.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_clock_monotonic_ns nx_clock_gettime nx_clock_elapsed_us nx_clock_monotonic_ns ↻ nx_clock_elapsed_ms nx_clock_monotonic_ns ↻ nx_clock_realtime_ns nx_clock_gettime ↻

structs

none

consts

none

functions

15func main() -> i64 {