2016-11-29 00:54:32 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Copyright (c) 2014 - 2016. *)
|
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2017-01-14 16:13:59 +04:00
|
|
|
type t
|
2016-11-29 00:54:32 +04:00
|
|
|
|
2017-01-14 16:13:59 +04:00
|
|
|
val create: init:int -> alpha:float -> t
|
|
|
|
val destroy: t -> unit
|
2016-11-29 00:54:32 +04:00
|
|
|
|
2017-01-14 16:13:59 +04:00
|
|
|
val add: t -> int -> unit
|
2016-11-29 00:54:32 +04:00
|
|
|
|
2017-01-14 16:13:59 +04:00
|
|
|
val on_update: (unit -> unit) -> unit
|
|
|
|
val updated: unit Lwt_condition.t
|
|
|
|
|
|
|
|
type stat = {
|
|
|
|
total: int ;
|
|
|
|
average: int ;
|
|
|
|
}
|
|
|
|
val stat: t -> stat
|