package core_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
include Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
include Core.Invariant.S with type t := t
val invariant : t Base__.Invariant_intf.inv
val create : ?capacity:int -> ?level_bits:Level_bits.t -> alarm_precision:Alarm_precision.t -> unit -> t

create raises if alarm_precision <= 0.

val alarm_precision : t -> Core.Time_ns.Span.t

accessors

val level_bits : t -> Level_bits.t
val durations : t -> Core.Time_ns.Span.t list

durations t returns the durations of the levels in t

val microsecond_precision : unit -> 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_test library.

OCaml

Innovation. Community. Security.