mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[statsd] Send time metrics in ms not seconds (#9614)
This commit is contained in:
committed by
GitHub
parent
d052f47bbd
commit
cba82cfd03
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user