diff --git a/metrics/metrics.go b/metrics/metrics.go index 244ae59d2..f20814e91 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -839,7 +839,7 @@ var GatewayNodeViews = append([]*view.View{ // SinceInMilliseconds returns the duration of time since the provide time as a float64. func SinceInMilliseconds(startTime time.Time) float64 { - return float64(time.Since(startTime).Nanoseconds()) / 1e6 + return float64(time.Since(startTime).Milliseconds()) } // Timer is a function stopwatch, calling it starts the timer,