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

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.