Skip to content

Commit 1b9f657

Browse files
committed
Print info before start of the new iteration
1 parent 52a489f commit 1b9f657

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/search.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,14 +955,20 @@ void search(int id, ThreadSearch *th, int depth, bool analysis, Bitboard b) {
955955

956956
}
957957

958-
if (stopable && (exit_thread_flag || tm.outOfTimeRoot())) {
958+
// Do not print the search info if the time ran out during a search
959+
if (stopable && (exit_thread_flag || tm.outOfTime())) {
959960
break;
960961
}
961962

962963
if (id == 0 && canPrintInfo) {
963964
printSearchInfo(printInfo, EXACT);
964965
}
965966

967+
// Print search info if time runs out before next iteration
968+
if (stopable && (exit_thread_flag || tm.outOfTimeRoot())) {
969+
break;
970+
}
971+
966972
}
967973

968974
th->bestMove = bestMove;

0 commit comments

Comments
 (0)