Advanced functions time decorator
Create a decorator function time_decorator which has to calculate decorated function execution time
and put this time value to execution_time dictionary where key is
decorated function name and value is this function execution time.
For example:
@time_decorator
def func_add(a, b):
sleep(0.2)
return a + b
>>> func_add(10, 20)
30
>>> execution_time['func_add']
0.212341254
Решение задачи првоеряется автоматически на удаленном сервере. Решение задачи выполняется в среде Pycharm.