Reference

std/time

Wall-clock time: points in time (Instant) and the spans between them (Duration).

Both are a count of nanoseconds in an Int64 and nothing else, so they cost what the number costs: comparing and subtracting them is integer arithmetic, and only reading the clock goes to the operating system.

Modules

Everything