First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Aug 4 '14

JervisW gravatar image

You can use the python timeit module. It will run the same piece of code multiple times (to attempt to compensate for changing conditions on your computer, e.g. caches being warmed up, other processes taking more time).

Why is it important for you to find the relative processing time between the two solution methods?