package lsp

  1. Overview
  2. Docs

doc/lsp.stdune/Stdune/Metrics/Timer/index.html

Module Metrics.TimerSource

Sourcetype t
Sourceval create : unit -> t
Sourceval read_seconds : t -> float
Sourceval record : t -> f:(unit -> 'a) -> 'a

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

OCaml

Innovation. Community. Security.