code wiki / (root) / nx_time_canonical.nx

nx_time_canonical.nx

buildroot/runtime/nx_time_canonical.nx

2640 B78 linesdepth 0pulls 0 transitivereach 1 importersview sourcekind tooltopic time
docsdependenciesstructsconstsfunctions

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

25struct TimeSpec {

consts

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

functions

30func sys_clock_gettime(clk_id: i64, ts: *TimeSpec) -> i64 {
38func monotonic_ns() -> i64 {
called by 2: time_execmain calls 1: sys_clock_gettime
49func wall_clock_ns() -> i64 {
called by 1: main calls 1: sys_clock_gettime
66func main() -> i64 {