abs_diff span span' is the absolute difference between
add span span' is
span + span'.
add_span t s is the timestamp
s units later than
the result overflows.
compare span span' orders spans by increasing duration.
compare t t' orders timestamps by increasing time.
count c is the monotonic time span elapsed since
c was created.
counter () is a counter counting from now on.
86_400., the number of seconds in one SI-accepted day.
dump ppf span prints an unspecified raw representation of
dump ppf t prints an unspecified raw representation of
elapsed () is the monotonic time span elapsed since the
beginning of the program.
now_ns () is the unsigned 64-bit integer nanosecond monotonic
time span elapsed since the beginning of the program.
equal span span' is
span' are equal.
equal t t' is
t' are equal.
3600., the number of seconds in one SI-accepted hour.
is_earlier t ~than is
t occurred before
is_later t ~than is
t occurred after
max_span is 2^64-1ns.
60., the number of seconds in one SI-accepted minute.
1e-3, the number of seconds in one millisecond.
now () is the current system-relative monotonic timestamp.
now_ns () is an unsigned 64-bit integer nanosecond
system-relative monotonic timestamp.
1e-9 the number of seconds in one nanosecond.
of_uint64_ns d is the unsigned 64-bit integer nanosecond
span as a span.
to_uint64_ns t is
t is an unsigned 64-bit integer
nanosecond timestamp as a timestamp.
one is a span of 1ns.
period () is the clock's period as a monotonic time span (if
period_ns () is the clock's period as an unsigned 64-bit
integer nanosecond monotonic time span (if available).
pp_span ppf span prints an unspecified representation of
pp ppf t prints
t as an unsigned 64-bit integer nanosecond
does but on a floating
point seconds time span value (which can be negative).
1. /. 86400., the number of SI-accepted days in
1. /. 3600., the number of SI-accepted hours in
1. /. 60., the number of SI-accepted minutes in
1e3, the number of milliseconds in one second.
1e9 the number of nanoseconds in one second.
1e6, the number of microseconds in one second.
1. /. 31_557_600., the number of Julian years
in one second.
span t t' is the span between
t' regardless of the
sub_span t s is the timestamp
s units earlier than
None if overflows.
to_day span is
span in SI-accepted days (24 hours, 86400s).
to_hour span is
span in SI-accepted hours (3600s).
to_min span is
span in SI-accepted minutes (60s).
to_ms span is
span in milliseconds (1e-3s).
to_ns span is
span in nanoseconds (1e-9s).
to_s span is
span is seconds.
to_uint64_ns span is
span as an unsigned 64-bit integer
to_uint64_ns t is
t as an unsigned 64-bit integer
to_us span is
span in microseconds (1e-6s).
to_year span is
span in Julian years (365.25 days, 31'557'600s).
1e-6, the number of seconds in one microsecond.
31_557_600., the number of seconds in a Julian year.
zero is a span of 0ns.