MCPcopy
hub / github.com/nats-io/nats.go / Duration

Method Duration

bench/bench.go:171–173  ·  view source on GitHub ↗

Duration that the sample was active

()

Source from the content-addressed store, hash-verified

169
170// Duration that the sample was active
171func (s *Sample) Duration() time.Duration {
172 return s.End.Sub(s.Start)
173}
174
175// Seconds that the sample or samples were active
176func (s *Sample) Seconds() float64 {

Callers 15

ThroughputMethod · 0.95
RateMethod · 0.95
SecondsMethod · 0.95
PublishMsgMethod · 0.80
configureJSContextMethod · 0.80
configurePullMethod · 0.80
configurePublishMethod · 0.80
configureSubscribeMethod · 0.80
configureAckMethod · 0.80
configureAckMethod · 0.80
configurePullMethod · 0.80
FetchMethod · 0.80

Calls

no outgoing calls

Tested by 9

TestReconnectTotalTimeFunction · 0.64
TestDrainConnectionFunction · 0.64
TestTimeoutOnNoServersFunction · 0.64
TestPauseConsumerFunction · 0.64
TestDurationFunction · 0.64
TestGroupDurationFunction · 0.64
TestBenchSetupFunction · 0.64
TestServiceBasicsFunction · 0.64