MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / rounded

Method rounded

pkg/util/duration/duration.go:132–134  ·  view source on GitHub ↗

rounded returns nanos rounded to the nearest microsecond.

()

Source from the content-addressed store, hash-verified

130
131// rounded returns nanos rounded to the nearest microsecond.
132func (d Duration) rounded() int64 {
133 return rounded(d.nanos)
134}
135
136// rounded returns nanos rounded to the nearest microsecond.
137func rounded(nanos int64) int64 {

Callers 1

AsBigIntMethod · 0.95

Calls 1

roundedFunction · 0.85

Tested by

no test coverage detected