I am working on a code with relatively few iterations (like, less than 100) and the total time is still several minutes. This means complexity is of no help and I don't really know what operations take most of the cpu time. This is annoying as i want to repeat that operation thousands of times. I want to reduce that time.
I know how to use time.clock() and return the difference but i am looking for a way to know the time spent on each line to know where and if an improvement can be made. Is there a mode already built for that on python? (3.4, windows)