import time
def time_cal(func):
def improve_fun():
start_time = 5
func()
end_time = 10
print(f'end time: {end_time-start_time}')
return improve_fun
@time_cal
def print_odd():
for i in range(100):
if i % 2 == 0:
print(i)
if __name__ == "__main__":
# dc = time_cal(print_odd)
# dc()
print_odd()