You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Send sends the time elapsed since the creation of the Timing.
func (t Timing) Send(bucket string) {
t.c.Timing(bucket, int(t.Duration()/time.Millisecond))
}
Because int(t.Duration()/time.Millisecond) will be 0 if t.Duration is less than int(time.Millisecond), so we should correct it like this
// Send sends the time elapsed since the creation of the Timing.
func (t Timing) Send(bucket string) {
t.c.Timing(bucket, t.Duration().Seconds()*1e3)
}
The text was updated successfully, but these errors were encountered:
Original:
Because
int(t.Duration()/time.Millisecond)
will be 0 ift.Duration
is less thanint(time.Millisecond)
, so we should correct it like thisThe text was updated successfully, but these errors were encountered: