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 believe you are looking for the sleep function in the time module.</p>

<p><a href="https://docs.python.org/2/library/time.html#time.sleep/%22time.sleep%22" rel="nofollow">https://docs.python.org/2/library/time.html#time.sleep</a></p>

python