MCPcopy Index your code
hub / github.com/CodisLabs/codis / Duration

Method Duration

pkg/utils/timesize/timesize.go:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16type Duration time.Duration
17
18func (d Duration) Duration() time.Duration {
19 return time.Duration(d)
20}
21
22func (d Duration) Int64() int64 {
23 return int64(d)

Callers 15

MarshalTextMethod · 0.95
CPUTotalMethod · 0.80
GetUsageFunction · 0.80
GetUsageFunction · 0.80
ParseFunction · 0.80
TestTimeSizeFunction · 0.80
setupMethod · 0.80
serveProxyMethod · 0.80
ForwardMethod · 0.80
startMetricsJsonMethod · 0.80
startMetricsInfluxdbMethod · 0.80
startMetricsStatsdMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestTimeSizeFunction · 0.64