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
setoption name MaxMovetime value 10000
go depth 17
Chess Stack Exchange is a question and answer site for serious players and enthusiasts of chess. It only takes a minute to sign up.Sign up to join this community
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:
You will just need to create a timer yourself and send the stop signal to terminate the search immediately.