code wiki / (root) / nx_gpu_timestamp_lib.nx

nx_gpu_timestamp_lib.nx

buildroot/runtime/nx_gpu_timestamp_lib.nx

1595 B37 linesdepth 0pulls 0 transitivereach 5 importersview sourcekind librarytopic gpu
docsdependenciesstructsconstsfunctions

about

Lossless WebGPU timestamp transport: canonical decimal uint64, two unsigned 32-bit limbs. Values are raw device-clock nanoseconds, never host-clock timestamps or GPU submission time.

dependencies 0 imports · 1 importers

nx_gpu_timestamp_lib.nx nx_gpu_capture_lib.nx

imports: none

imported by: nx_gpu_capture_lib.nx

structs

none

consts

3const GTS_LIMB_BASE: i64 = 4294967296
4const GTS_LIMB_MAX: i64 = GTS_LIMB_BASE-1
5const GTS_DECIMAL_MAX: i64 = 20

functions

7func gts_u64(b: *u8, n: i64, out: *i64) -> i64
24func gts_interval(start: *u8, sn: i64, finish: *u8, fn: i64, duration: *u8, dn: i64, scratch: *i64) -> i64
called by 1: gtc_validate calls 1: gts_u64