MCPcopy Index your code
hub / github.com/prometheus/client_js / startTimer

Method startTimer

index.d.ts:462–462  ·  view source on GitHub ↗

* Start a timer. Calling the returned function will set the gauge's value * to the observed duration in seconds. * @return Function to invoke when timer should be stopped. The value it * returns is the timed duration.

()

Source from the content-addressed store, hash-verified

460 * returns is the timed duration.
461 */
462 startTimer(): (labels?: LabelValues<T>) => number;
463 }
464}
465

Callers 4

exemplarsTest.jsFile · 0.65
histogramTest.jsFile · 0.65
summaryTest.jsFile · 0.65
gaugeTest.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected