code wiki / (root) / nx_time_canonical.nx

nx_time_canonical.nx

buildroot/runtime/nx_time_canonical.nx

2741 B79 linesdepth 0pulls 0 transitivereach 1 importersview sourcekind tooltopic time
docsdependenciesstructsconstsfunctions

about

nx_time_canonical.nx -- Provides monotonic and wall-clock time in nanoseconds using system calls.

dependencies 0 imports · 1 importers

nx_time_canonical.nx nx_nxrun.nx

imports: none

imported by: nx_nxrun.nx

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

main monotonic_ns sys_clock_gettime wall_clock_ns sys_clock_gettime ↻

structs

26struct TimeSpec {

consts

2const CLOCK_MAGIC_1000000000: i64 = 1000000000
3const CLOCK_MAGIC_1577836800000000000: i64 = 1577836800000000000
23const CLOCK_REALTIME: i64 = 0
24const CLOCK_MONOTONIC: i64 = 1

functions

31func sys_clock_gettime(clk_id: i64, ts: *TimeSpec) -> i64 {
39func monotonic_ns() -> i64 {
50func wall_clock_ns() -> i64 {
called by 1: main calls 1: sys_clock_gettime
67func main() -> i64 {