stdune

Dune's unstable standard library
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library stdune
Module Stdune . Metrics . Timer
module Measure : sig ... end
type t
val start : string -> t
val stop : t -> unit
val record : string -> f:( unit -> 'a ) -> 'a

If metrics are enabled, increment the timer by the amount of seconds elapsed during the execution of f.

val aggregated_timers : unit -> Measure.t String.Map.t