ligo/lib_node_p2p/moving_average.mli
Grégoire Henry 82857dcb94 Jbuilder: split lib_node_net
- `lib_node_p2p_base`: Base datatypes for the P2P layers
- `lib_node_services`: RPC service definitions (depends on `node_p2p_base`)
- `lib_node_http`: RPC http server
- `lib_node_p2p`: the P2P workers
2017-12-04 19:15:26 +01:00

25 lines
860 B
OCaml

(**************************************************************************)
(* *)
(* Copyright (c) 2014 - 2017. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
type t
val create: init:int -> alpha:float -> t
val destroy: t -> unit
val add: t -> int -> unit
val on_update: (unit -> unit) -> unit
val updated: unit Lwt_condition.t
type stat = {
total: int64 ;
average: int ;
}
val stat: t -> stat