Parameter Make.S

val get_all_and_reset : unit -> Measurement.t list

get_all_and_reset () evaluates in all the elements that were aggregated inside the state and then resets the state to its initial value. Elements are returned in the order they were pushed in the state (the resulting list starts by older elements).

val push : Measurement.t -> unit

push elt aggregates the given element elt in the state.