func (t *microSecondsTimer) Percentiles(ps []float64) []float64 {
	return t.histogram.Percentiles(ps)
}
Percentiles returns a slice of arbitrary percentiles of the values in the
sample.
package metrics
import (
	"sync"
	"time"
	"github.com/palantir/go-metrics"
)
func getOrRegisterMicroSecondsTimer(name string, r metrics.Registry) metrics.Timer {
	if nil == r {
		r = metrics.DefaultRegistry
	}
	return r.GetOrRegister(name, newMicroSecondsTimer).(metrics.Timer)
}
func newMicroSecondsTimer() metrics.Timer {
	if metrics.UseNilMetrics {
		return metrics.NilTimer{}
	}
	return &microSecondsTimer{
		histogram: metrics.NewHistogram(metrics.NewExpDecaySample(1028, 0.015)),
		meter:     metrics.NewMeter(),
	}
}
type microSecondsTimer struct {
	histogram metrics.Histogram
	meter     metrics.Meter
	mutex     sync.Mutex
}
func (t *microSecondsTimer) Count() int64 {
	return t.histogram.Count()
}
func (t *microSecondsTimer) Max() int64 {
	return t.histogram.Max()
}
func (t *microSecondsTimer) Mean() float64 {
	return t.histogram.Mean()
}
func (t *microSecondsTimer) Min() int64 {
	return t.histogram.Min()
}
func (t *microSecondsTimer) Percentile(p float64) float64 {
	return t.histogram.Percentile(p)
}