/// <inheritdoc /> public void Time(BucketTimerOptions options, Action action) { using ( _registry.BucketTimer( options, () => _timerBuilder.Build(options.Buckets, _clock, options.DurationUnit)). NewContext()) { action(); } }
/// <inheritdoc /> public ITimer Instance <T>(BucketTimerOptions options, Func <T> builder) where T : IBucketTimerMetric { return(_registry.BucketTimer(options, builder)); }