package core

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val t_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val invariant : t Base__.Invariant_intf.inv
val create : ?level_bits:Timing_wheel_float.Level_bits.t -> alarm_precision:Timing_wheel_float.Alarm_precision.t -> Base.Unit.t -> t

create raises if alarm_precision <= 0.

accessors

durations t returns the durations of the levels in t

val microsecond_precision : Base.Unit.t -> t

microsecond_precision () returns a reasonable configuration for a timing wheel with microsecond alarm_precision, and level durations of 1ms, 1s, 1m, 1h, 1d. See the relevant expect test in Core_kernel_test library.

OCaml

Innovation. Community. Security.