MCPcopy
hub / github.com/netdata/netdata / Duration

Method Duration

src/go/pkg/confopt/duration.go:74–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72type Duration time.Duration
73
74func (d Duration) Duration() time.Duration {
75 return time.Duration(d)
76}
77
78func (d Duration) String() string {
79 return d.Duration().String()

Callers 15

StringMethod · 0.95
mainFunction · 0.45
TestJobConfigSetDefaultsFunction · 0.45
advanceAnniversaryFunction · 0.45
confDurationFunction · 0.45
compileCollectorConfigFunction · 0.45
resolveUpdateEveryFunction · 0.45
defaultedJobConfigFunction · 0.45
RunMethod · 0.45
completeRunMethod · 0.45
skipDisallowedPeriodMethod · 0.45
parseFunctionMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestJobConfigSetDefaultsFunction · 0.36
confDurationFunction · 0.36
TestCollector_CollectFunction · 0.36
TestCollector_InitFunction · 0.36
TestCollector_InitFunction · 0.36