Index of values


A
abs_diff [Mtime.Span]
abs_diff span span' is the absolute difference between span and span'.
add [Mtime.Span]
add span span' is span + span'.
add_span [Mtime]
add_span t s is the timestamp s units later than t or None if the result overflows.

C
compare [Mtime.Span]
compare span span' orders spans by increasing duration.
compare [Mtime]
compare t t' orders timestamps by increasing time.
count [Mtime_clock]
count c is the monotonic time span elapsed since c was created.
counter [Mtime_clock]
counter () is a counter counting from now on.

D
day_to_s [Mtime]
day_to_s is 86_400., the number of seconds in one SI-accepted day.
dump [Mtime.Span]
dump ppf span prints an unspecified raw representation of span on ppf.
dump [Mtime]
dump ppf t prints an unspecified raw representation of t on ppf.

E
elapsed [Mtime_clock]
elapsed () is the monotonic time span elapsed since the beginning of the program.
elapsed_ns [Mtime_clock]
now_ns () is the unsigned 64-bit integer nanosecond monotonic time span elapsed since the beginning of the program.
equal [Mtime.Span]
equal span span' is true iff span and span' are equal.
equal [Mtime]
equal t t' is true iff t and t' are equal.

H
hour_to_s [Mtime]
hour_to_s is 3600., the number of seconds in one SI-accepted hour.

I
is_earlier [Mtime]
is_earlier t ~than is true iff t occurred before than.
is_later [Mtime]
is_later t ~than is true iff t occurred after than.

M
max_span [Mtime.Span]
max_span is 2^64-1ns.
min_span [Mtime.Span]
min_span is Mtime.Span.zero.
min_to_s [Mtime]
min_to_s is 60., the number of seconds in one SI-accepted minute.
ms_to_s [Mtime]
ms_to_s is 1e-3, the number of seconds in one millisecond.

N
now [Mtime_clock]
now () is the current system-relative monotonic timestamp.
now_ns [Mtime_clock]
now_ns () is an unsigned 64-bit integer nanosecond system-relative monotonic timestamp.
ns_to_s [Mtime]
ns_to_s is 1e-9 the number of seconds in one nanosecond.

O
of_uint64_ns [Mtime.Span]
of_uint64_ns d is the unsigned 64-bit integer nanosecond span as a span.
of_uint64_ns [Mtime]
to_uint64_ns t is t is an unsigned 64-bit integer nanosecond timestamp as a timestamp.
one [Mtime.Span]
one is a span of 1ns.

P
period [Mtime_clock]
period () is the clock's period as a monotonic time span (if available).
period_ns [Mtime_clock]
period_ns () is the clock's period as an unsigned 64-bit integer nanosecond monotonic time span (if available).
pp [Mtime.Span]
pp_span ppf span prints an unspecified representation of span on ppf.
pp [Mtime]
pp ppf t prints t as an unsigned 64-bit integer nanosecond timestamp.
pp_float_s [Mtime.Span]
pp_float_s prints like Mtime.Span.pp does but on a floating point seconds time span value (which can be negative).

S
s_to_day [Mtime]
s_to_day is 1. /. 86400., the number of SI-accepted days in one second.
s_to_hour [Mtime]
s_to_hour is 1. /. 3600., the number of SI-accepted hours in one second.
s_to_min [Mtime]
s_to_min is 1. /. 60., the number of SI-accepted minutes in one second.
s_to_ms [Mtime]
s_to_ms is 1e3, the number of milliseconds in one second.
s_to_ns [Mtime]
s_to_ns is 1e9 the number of nanoseconds in one second.
s_to_us [Mtime]
s_to_us is 1e6, the number of microseconds in one second.
s_to_year [Mtime]
s_to_year is 1. /. 31_557_600., the number of Julian years in one second.
span [Mtime]
span t t' is the span between t and t' regardless of the order between t and t'.
sub_span [Mtime]
sub_span t s is the timestamp s units earlier than t or None if overflows.

T
to_day [Mtime.Span]
to_day span is span in SI-accepted days (24 hours, 86400s).
to_hour [Mtime.Span]
to_hour span is span in SI-accepted hours (3600s).
to_min [Mtime.Span]
to_min span is span in SI-accepted minutes (60s).
to_ms [Mtime.Span]
to_ms span is span in milliseconds (1e-3s).
to_ns [Mtime.Span]
to_ns span is span in nanoseconds (1e-9s).
to_s [Mtime.Span]
to_s span is span is seconds.
to_uint64_ns [Mtime.Span]
to_uint64_ns span is span as an unsigned 64-bit integer nanosecond span.
to_uint64_ns [Mtime]
to_uint64_ns t is t as an unsigned 64-bit integer nanosecond timestamp.
to_us [Mtime.Span]
to_us span is span in microseconds (1e-6s).
to_year [Mtime.Span]
to_year span is span in Julian years (365.25 days, 31'557'600s).

U
us_to_s [Mtime]
us_to_s is 1e-6, the number of seconds in one microsecond.

Y
year_to_s [Mtime]
year_to_s is 31_557_600., the number of seconds in a Julian year.

Z
zero [Mtime.Span]
zero is a span of 0ns.