user4545: Is it possible to perform analysis with stockfish for a given depth, but stop in case it is taking longer than a specified time?
Something like this:
go depth 17 max movetime 10000
or
setoption name MaxMovetime value 10000
...
go depth 17

user825: I don't think it's possible to do it in the UCI protocol. Fortunately, it's really easy to do it yourself. For example, in my SmallFish app (http://www.smallchess.com), to save the phone's battery the app would send the "stop" signal to the engine after a minute of analysis. The command is very simple:
stop

You will just need to create a timer yourself and send the stop signal to terminate the search immediately.

4545: <p>Is it possible to perform analysis with stockfish for a given depth, but stop in case it is taking longer than a specified time?</p>

<p>Something like this:</p>

<p><code>go depth 17 max movetime 10000</code></p>

<p>or</p>

<p><code>setoption name MaxMovetime value 10000</code><br>
...<br>
<code>go depth 17</code></p>
 825: <p>I don't think it's possible to do it in the UCI protocol. Fortunately, it's really easy to do it yourself. For example, in my SmallFish app (<a href="http://www.smallchess.com" rel="nofollow">http://www.smallchess.com</a>), to save the phone's battery the app would send the "stop" signal to the engine after a minute of analysis. The command is very simple:</p>

<pre><code>stop
</code></pre>

<p>You will just need to create a timer yourself and send the stop signal to terminate the search immediately.</p>
