How do I make python to wait for a return value limited time?
<p>I'm calling a method which run time is undefiniable.
I want to wait for it some second (for example 2 sec) and after then I want to step my program next.</p>

<p>I think this is a more suitable answer to the question: <a href="http://stackoverflow.com/questions/25027122/break-the-function-after-certain-time">break the function after certain time</a></p>

<p>P.S: Could not post it as a comment due to insufficient reputation. </p>

python