metric milliseconds computation with golang original method (#11403)

Signed-off-by: Icarus9913 <icaruswu66@qq.com>
This commit is contained in:
Icarus Wu authored and GitHub committed 2023-11-16 14:50:23 +01:00
1 parent 808a6e9226
commit 369a4c4bfa
1 file changed
+1 -1
+1 -1
View File
@@ -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,