[statsd] Send time metrics in ms not seconds (#9614)

This commit is contained in:
Daniel Vaz Gaspar
2020-04-22 16:46:38 +01:00
committed by GitHub
parent d052f47bbd
commit cba82cfd03

View File

@@ -1239,7 +1239,7 @@ def time_function(func: Callable, *args, **kwargs) -> Tuple[float, Any]:
start = default_timer()
response = func(*args, **kwargs)
stop = default_timer()
return stop - start, response
return (stop - start) * 1000.0, response
def MediumText() -> Variant: