Skip to content

Commit

Permalink
[Disk Manager] remove unused code (#58)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Montsev <[email protected]>
  • Loading branch information
SvartMetal and Mikhail Montsev authored Jan 8, 2024
1 parent e2ad4da commit 565a8c9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions cloud/disk_manager/internal/pkg/monitoring/metrics/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package metrics

import (
"net/http"
"time"

"github.com/ydb-platform/nbs/library/go/core/metrics"
)
Expand Down Expand Up @@ -34,19 +33,3 @@ type TimerVec = metrics.TimerVec
type Buckets = metrics.Buckets

type DurationBuckets = metrics.DurationBuckets

type DelayedTimer struct {
startTime time.Time
timer Timer
}

func StartDelayedTimer(timer Timer) DelayedTimer {
return DelayedTimer{
startTime: time.Now(),
timer: timer,
}
}

func (t *DelayedTimer) Stop() {
t.timer.RecordDuration(time.Since(t.startTime))
}

0 comments on commit 565a8c9

Please sign in to comment.