mirror of
https://github.com/luxfi/metric.git
synced 2026-07-27 04:12:44 +00:00
13 lines
404 B
Go
13 lines
404 B
Go
// Copyright (C) 2020-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package metric
|
|
|
|
// TimingMetric measures durations and records them in a histogram.
|
|
type TimingMetric = timingMetric
|
|
|
|
// NewTimingMetric creates a timing metric bound to the provided histogram.
|
|
func NewTimingMetric(histogram Histogram) *TimingMetric {
|
|
return newTimingMetric(histogram)
|
|
}
|