Skip to main content

Module timing

Module timing 

Source
Expand description

Planetiler-style phase timing and formatting.

Provides elapsed-time logging, per-phase CPU/wall tracking, and compact number/duration formatting for pipeline progress output.

Structs§

CpuTime
Snapshot of process CPU time (user + system).
ElapsedTimer
A tracing_subscriber::fmt::time::FormatTime that prints elapsed time since init in H:MM:SS format.
PhaseSummary
Summary returned by [PhaseTimer::finish].
PhaseTimer
Per-phase wall + CPU timer.

Functions§

elapsed
Seconds elapsed since init was called.
format_count
Format a count in compact human-readable form.
format_duration
Format a Duration in human-readable compact form.
init
Initialise the global program timer. Call once at the top of run().
process_cpu_time
Read current process CPU time via getrusage(RUSAGE_SELF).