Timing_wheel.Configinclude Sexplib0.Sexpable.S with type t := tinclude Sexplib0.Sexpable.Of_sexp with type t := tval t_of_sexp : Sexplib0.Sexp.t -> tinclude Sexplib0.Sexpable.Sexp_of with type t := tval sexp_of_t : t -> Sexplib0.Sexp.tinclude Core.Invariant.S with type t := tval invariant : t -> unitval create :
?capacity:int ->
?level_bits:Level_bits.t ->
alarm_precision:Alarm_precision.t ->
unit ->
tcreate raises if alarm_precision <= 0.
val alarm_precision : t -> Core.Time_ns.Span.taccessors
val level_bits : t -> Level_bits.tval durations : t -> Core.Time_ns.Span.t listdurations t returns the durations of the levels in t
val microsecond_precision : unit -> tmicrosecond_precision () returns a reasonable configuration for a timing wheel with microsecond alarm_precision, and level durations of 1ms, 1s, 1m, 1h, 1d, 1w. See the relevant expect test in Core_test library.