MCPcopy Index your code
hub / github.com/prometheus/prometheus / Duration

Method Duration

util/stats/timer.go:49–51  ·  view source on GitHub ↗

Duration returns the duration value of the timer in seconds.

()

Source from the content-addressed store, hash-verified

47
48// Duration returns the duration value of the timer in seconds.
49func (t *Timer) Duration() float64 {
50 return t.duration.Seconds()
51}
52
53// Return a string representation of the Timer.
54func (t *Timer) String() string {

Callers 15

head.goFile · 0.80
DefaultOptionsFunction · 0.80
openFunction · 0.80
runMethod · 0.80
ApplyConfigMethod · 0.80
StringMethod · 0.80

Calls

no outgoing calls

Tested by 15

TestOTLPDeltaFunction · 0.64
BenchmarkOTLPFunction · 0.64
TestSampleDeliveryFunction · 0.64
testDefaultQueueConfigFunction · 0.64
TestWALMetadataDeliveryFunction · 0.64