package stdune

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
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