mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2025-06-29 17:51:08 +02:00
make things cleaner
This commit is contained in:
@ -19,7 +19,7 @@ def timed(method):
|
||||
ts = time.time()
|
||||
result = method(*args, **kw)
|
||||
te = time.time()
|
||||
args[0].print_success(f"{method.__name__} executed ({te-ts:.2f}s)")
|
||||
args[0].print_success(f"\n {method.__name__} executed ({te-ts:.2f}s)")
|
||||
return result
|
||||
|
||||
return _timed
|
||||
|
Reference in New Issue
Block a user