from time import time
def performance(fn):
    def wrapper(*args, **kawrgs):
        t1 = time()
        result = fn(*args, **kawrgs)
        t2 = time()
        t3=str(t2-t1)
        print("took:"+ t3+ "seconds")
        return result
    return wrapper

@performance
def long_time():
    print('1')
    for i in range(9900000):
        i*5
@performance
def long_time2():
    print('2')
    for i in list(range(9900000)):
        i*5


long_time()
long_time2()
