mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Print time and node count before search ends
This info is normally printed together with PV info in uci_pv() but when search is stopped, for instance when max search time is reached, uci_pv is not called and we miss this bits. Suggested by gravy_train No functional change.
This commit is contained in:
@@ -264,6 +264,10 @@ void Search::think() {
|
|||||||
|
|
||||||
finalize:
|
finalize:
|
||||||
|
|
||||||
|
// When search is stopped this info is not printed
|
||||||
|
sync_cout << "info nodes " << RootPos.nodes_searched()
|
||||||
|
<< " time " << Time::now() - SearchTime + 1 << sync_endl;
|
||||||
|
|
||||||
// When we reach max depth we arrive here even without Signals.stop is raised,
|
// When we reach max depth we arrive here even without Signals.stop is raised,
|
||||||
// but if we are pondering or in infinite search, according to UCI protocol,
|
// but if we are pondering or in infinite search, according to UCI protocol,
|
||||||
// we shouldn't print the best move before the GUI sends a "stop" or "ponderhit"
|
// we shouldn't print the best move before the GUI sends a "stop" or "ponderhit"
|
||||||
|
|||||||
Reference in New Issue
Block a user