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

Method Milliseconds

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

Milliseconds returns the duration as an integer millisecond count. Prometheus stores timestamps in milliseconds; time.Duration already covers the other units.

()

Source from the content-addressed store, hash-verified

191// Prometheus stores timestamps in milliseconds; time.Duration already
192// covers the other units.
193func (d Duration) Milliseconds() int64 { return time.Duration(d).Milliseconds() }
194
195// Set implements pflag/flag.Value.
196func (d *Duration) Set(s string) error {

Callers 1

TestDurationMillisecondsFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestDurationMillisecondsFunction · 0.64