X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=8d625bd9fe553510fce79ff0cf4e538131666e62;hp=af940ce0634ff1d6f33330d098e7eb7fb9cc91b9;hb=f5622cd5ec7836e899e263cc4cd4cc386e1ed5f4;hpb=55604f156b2293e870984c6bb57c1954ad5a9517 diff --git a/src/uci.cpp b/src/uci.cpp index af940ce0..8d625bd9 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -174,12 +174,14 @@ void UCI::loop(int argc, char* argv[]) { else Search::Limits.ponder = false; } - else if (token == "perft" && (is >> token)) // Read perft depth + else if (token == "perft" || token == "divide") { + int depth; stringstream ss; + is >> depth; ss << Options["Hash"] << " " - << Options["Threads"] << " " << token << " current perft"; + << Options["Threads"] << " " << depth << " current " << token; benchmark(pos, ss); }