timeit - python Proper Way To Time Functions import timeit timeit.timeit('func_to_time()',globals=globals(),number=1000)