MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Div

Method Div

pkg/util/duration/duration.go:818–820  ·  view source on GitHub ↗

Div returns a Duration representing a time length of d/x.

(x int64)

Source from the content-addressed store, hash-verified

816
817// Div returns a Duration representing a time length of d/x.
818func (d Duration) Div(x int64) Duration {
819 return d.DivFloat(float64(x))
820}
821
822// MulFloat returns a Duration representing a time length of d*x.
823func (d Duration) MulFloat(x float64) Duration {

Callers

nothing calls this directly

Calls 1

DivFloatMethod · 0.95

Tested by

no test coverage detected