Trying to write a decorator, which displays the execution time of the function. Please tell me what's wrong. Thanks
import time def time_of_function(function): def wrapped(first, second): start_time = time.clock() function(bin(int(str(first), 2)+int(str(second), 2))) print(time.clock() - start_time) return wrapped @time_of_function def time_of_func(function): print(function(111,0000))