Commit 0f1f9462 authored by Romain DEP.'s avatar Romain DEP.
Browse files

fix for incorrect time logging

parent af41d5a5
Pipeline #5364 failed with stages
in 0 seconds
......@@ -186,9 +186,9 @@ def caps_decoder(dict_):
def timeit(func):
def func_wrapper(self, *args, **kwargs):
start = time.time() / 1e9
start = time.time()
result = func(self, *args, **kwargs)
exec_time = (time.time() / 1e9 - start)
exec_time = (time.time() - start) * 1e3
level = 30 if exec_time > 50 else 10
log.log(level, 'Execution time for %s: %s ms',
func.__name__, math.ceil(exec_time))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment