aboutsummaryrefslogtreecommitdiffstats
path: root/library/go/core/metrics/nop/timer.go
blob: 61906032a2dabf6617f1d0d7235903ee73cec945 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package nop

import (
	"time"

	"github.com/ydb-platform/ydb/library/go/core/metrics"
)

var _ metrics.Timer = (*Timer)(nil)

type Timer struct{}

func (Timer) RecordDuration(_ time.Duration) {}

var _ metrics.TimerVec = (*TimerVec)(nil)

type TimerVec struct{}

func (t TimerVec) With(_ map[string]string) metrics.Timer {
	return Timer{}
}

func (t TimerVec) Reset() {}