1
0

util.profiler: make log line easier to understand

This commit is contained in:
SomberNight
2022-06-09 19:46:42 +02:00
parent 2841cbeade
commit b6de15b95d

View File

@@ -434,7 +434,7 @@ def profiler(func):
t0 = time.time()
o = func(*args, **kw_args)
t = time.time() - t0
_profiler_logger.debug(f"{name} {t:,.4f}")
_profiler_logger.debug(f"{name} {t:,.4f} sec")
return o
return lambda *args, **kw_args: do_profile(args, kw_args)