Module Make.DurationSource

The type of time durations. This module is just a convenience wrapper around Mtime.Span.

Sourceval equal : t -> t -> bool
Sourceval compare : t -> t -> int

Round values

Sourceval zero : t
Sourceval nanosecond : t
Sourceval microsecond : t
Sourceval millisecond : t
Sourceval second : t
Sourceval minute : t
Sourceval hour : t
Sourceval day : t

Convertors

Sourceval of_ns : float -> t
Sourceval of_us : float -> t
Sourceval of_ms : float -> t
Sourceval of_sec : float -> t
Sourceval of_min : float -> t
Sourceval of_hour : float -> t
Sourceval of_day : float -> t

From integers

Sourceval of_int_ms : int -> t
Sourceval of_int_sec : int -> t
Sourceval of_int_min : int -> t
Sourceval of_int_hour : int -> t
Sourceval of_int64_ms : int64 -> t
Sourceval of_int64_sec : int64 -> t
Sourcemodule Of_int : sig ... end

Infix operators

Sourceval (+) : t -> t -> t
Sourceval (<) : t -> t -> bool
Sourceval (<=) : t -> t -> bool
Sourceval (=) : t -> t -> bool
Sourceval (>=) : t -> t -> bool
Sourceval (>) : t -> t -> bool