Up
Module
Span
Signature
type
t =
Core_kernel.Time_ns.Span.t
val
sexp_of_t :
t
->
Sexplib.Sexp.t
val
compare :
t
->
t
-> int
include
Comparable.Infix
with
type
t
:=
t
type
t
val
(>=) :
t
->
t
-> bool
val
(<=) :
t
->
t
-> bool
val
(=) :
t
->
t
-> bool
val
(>) :
t
->
t
-> bool
val
(<) :
t
->
t
-> bool
val
(<>) :
t
->
t
-> bool
include
Comparable.Validate
with
type
t
:=
t
type
t
val
validate_lbound : min:
t
Maybe_bound.t
->
t
Validate.check
val
validate_ubound : max:
t
Maybe_bound.t
->
t
Validate.check
val
validate_bound : min:
t
Maybe_bound.t
-> max:
t
Maybe_bound.t
->
t
Validate.check
include
Comparable.With_zero
with
type
t
:=
t
type
t
val
validate_positive :
t
Validate.check
val
validate_non_negative :
t
Validate.check
val
validate_negative :
t
Validate.check
val
validate_non_positive :
t
Validate.check
val
is_positive :
t
-> bool
val
is_non_negative :
t
-> bool
val
is_negative :
t
-> bool
val
is_non_positive :
t
-> bool
val
sign :
t
->
Sign0.t
Returns
Neg
,
Zero
, or
Pos
in a way consistent with the above functions.
include
Equal.S
with
type
t
:=
t
type
t
val
equal :
t
Equal.equal
val
of_sec : float ->
t
val
scale :
t
-> float ->
t