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

Method Get

pkg/settings/duration.go:40–42  ·  view source on GitHub ↗

Get retrieves the duration value in the setting.

(sv *Values)

Source from the content-addressed store, hash-verified

38
39// Get retrieves the duration value in the setting.
40func (d *DurationSetting) Get(sv *Values) time.Duration {
41 return time.Duration(sv.getInt64(d.slot))
42}
43
44func (d *DurationSetting) String(sv *Values) string {
45 return EncodeDuration(d.Get(sv))

Callers 1

StringMethod · 0.95

Calls 2

DurationMethod · 0.80
getInt64Method · 0.45

Tested by

no test coverage detected