I know I can use this
from timeit import timeit
test = lambda f: timeit(lambda:f(100), number=1)
t1 = test(hello)
To time how long it takes the hello function to run with argument 100. But let's say my hello function returns the string 'world' and I want to store that returned value and also have to the time it took to execute.
Can that be done?
 
    