timeit.timeit("A0([randint(1,256) * (-1) ** randint(1,2) for j in range("+str(n)+")])", setup="from HW2 import A0", number=1000000)
I want to measure the time that the A0 algorithm takes to complete its job on a list of size n, but I can't find a way to generate the list and then pass it in as a variable to the timeit.timeit(...) method. Will the timer only measure how long A0 takes to complete, or will the list generation also be included in the measurement?