package progress
package progress
-
progress_engine
-
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
The 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 -> unit
Add a value to the ring buffer.
val per_second : 'a t -> 'a
Estimate the rate of change of recorded values per second.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>