Milliseconds returns the duration as an integer millisecond count. Prometheus stores timestamps in milliseconds; time.Duration already covers the other units.
()
| 191 | // Prometheus stores timestamps in milliseconds; time.Duration already |
| 192 | // covers the other units. |
| 193 | func (d Duration) Milliseconds() int64 { return time.Duration(d).Milliseconds() } |
| 194 | |
| 195 | // Set implements pflag/flag.Value. |
| 196 | func (d *Duration) Set(s string) error { |
no outgoing calls