From b6769a61a85f6d6ab30cc9399e108d4321936685 Mon Sep 17 00:00:00 2001 From: georgehao Date: Sun, 17 Mar 2024 21:36:40 +0800 Subject: [PATCH] feat: tweak a bit --- metrics/timer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/timer.go b/metrics/timer.go index c731aa67bd..fc2a88f508 100644 --- a/metrics/timer.go +++ b/metrics/timer.go @@ -106,7 +106,7 @@ func (t *StandardTimer) Time(f func()) { t.Update(time.Since(ts)) } -// Update record the duration of an event, in nanoseconds. +// Update the duration of an event, in nanoseconds. func (t *StandardTimer) Update(d time.Duration) { t.mutex.Lock() defer t.mutex.Unlock() @@ -114,7 +114,7 @@ func (t *StandardTimer) Update(d time.Duration) { t.meter.Mark(1) } -// UpdateSince record the duration of an event that started at a time and ends now. +// UpdateSince update the duration of an event that started at a time and ends now. // The record uses nanoseconds. func (t *StandardTimer) UpdateSince(ts time.Time) { t.Update(time.Since(ts))