[skip e2e] Refine timerecord util comment (#13963)

Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>
pull/13952/head
edward.zeng 2021-12-22 15:23:11 +08:00 committed by GitHub
parent 032c1c5f72
commit 526715aee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ type TimeRecorder struct {
last time.Time
}
// NewTimeRecorder create a new TimeRecorder
// NewTimeRecorder creates a new TimeRecorder
func NewTimeRecorder(header string) *TimeRecorder {
return &TimeRecorder{
header: header,
@ -34,7 +34,7 @@ func NewTimeRecorder(header string) *TimeRecorder {
}
}
// RecordSpan return the duration from last record
// RecordSpan returns the duration from last record
func (tr *TimeRecorder) RecordSpan() time.Duration {
curr := time.Now()
span := curr.Sub(tr.last)
@ -42,7 +42,7 @@ func (tr *TimeRecorder) RecordSpan() time.Duration {
return span
}
// ElapseSpan return the duration from the beginning
// ElapseSpan returns the duration from the beginning
func (tr *TimeRecorder) ElapseSpan() time.Duration {
curr := time.Now()
span := curr.Sub(tr.start)