Module Javascript_profiling.Timer

The browser's `Performance` API provides us with a performant way to measure and record timespans and events of interest. These will be broadcast to `PerformanceObserver`s, and will appear on the "timing" track of any Chrome performance traces.

The `javascript_profiling` library provides bindings to this API.

type t
type measurement
val start : unit -> t
val stop : t -> measurement
val record : (unit -> 'a) -> 'a * measurement
module Duration : sig ... end
val duration : measurement -> Duration.t