MCPcopy Create free account
hub / github.com/dolthub/doltgresql / rounded

Method rounded

postgres/parser/duration/duration.go:157–159  ·  view source on GitHub ↗

rounded returns nanos rounded to the nearest microsecond.

()

Source from the content-addressed store, hash-verified

155
156// rounded returns nanos rounded to the nearest microsecond.
157func (d Duration) rounded() int64 {
158 return rounded(d.nanos)
159}
160
161// rounded returns nanos rounded to the nearest microsecond.
162func rounded(nanos int64) int64 {

Callers 1

AsBigIntMethod · 0.95

Calls 1

roundedFunction · 0.85

Tested by

no test coverage detected