I use the following way to get the execution time of main function ,
from timeit import Timer
t=Timer("main()","from __main__ import main")
print t.timeit()
however,sometimes I need get return values of main function to decide
whether main function should run once again or not. I don't know how
to modify the code above to achieve the goal.
Any ideas?