Skip to main content

Module time

Module time 

Source
Expand description

Time helpers.

Traces use two clocks:

  • monotonic — nanoseconds relative to profiler start; deterministic across replays and comparable across runs on the same machine;
  • wall — absolute wall-clock nanoseconds; used to anchor epochs and to correlate with external logs.

Functions§

monotonic_now_ns
Monotonic time in nanoseconds (process-local, arbitrary origin).
wall_now_ns
Current wall-clock time in nanoseconds since the Unix epoch.