MCPcopy Create free account
hub / github.com/prometheus/common / Sub

Method Sub

model/time.go:90–92  ·  view source on GitHub ↗

Sub returns the Duration t - o.

(o Time)

Source from the content-addressed store, hash-verified

88
89// Sub returns the Duration t - o.
90func (t Time) Sub(o Time) time.Duration {
91 return time.Duration(t-o) * minimumTick
92}
93
94// Time returns the time.Time representation of t.
95func (t Time) Time() time.Time {

Callers 1

TestDurationFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestDurationFunction · 0.64