[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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: