Exposed_for_testing.Flow_meterThe type of flow meters for some metric: values that compute an online windowed integral of a discrete sequence of (value, time) samples. This is useful for e.g. estimating the download rate of a process given a sequence of progress updates.
create ~clock ~size ~elt is a flow meter for values of type elt, using a window size of size and the clock function for collecting timestamps for recorded values.
val record : 'a t -> 'a -> unitAdd a value to the ring buffer.
val per_second : 'a t -> floatEstimate the rate of change of recorded values per second.