summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
190f88e)
Under MS Visual C++ debug window always unconditionally closes
when program exits, this is bad because we want to read results before.
So limit this kludge on Windows only.
Original patch by Heinz van Saanen.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
break;
totalNodes += nodes_searched();
}
break;
totalNodes += nodes_searched();
}
- cout << "\nProcessing time (ms) " << get_system_time() - startTime
- << "\nNodes searched " << totalNodes << "\nPress any key to exit" << endl;
+ cnt = get_system_time() - startTime;
+ cout << "\nProcessing time (ms) " << cnt
+ << "\nNodes searched " << totalNodes
+ << "\nNodes/second " << (int)(totalNodes/(cnt/1000.0))
+ << endl;
+
+ // Under MS Visual C++ debug window always unconditionally closes
+ // when program exits, this is bad because we want to read results before.
+ #if (defined(WINDOWS) || defined(WIN32) || defined(WIN64))
+ cout << "Press any key to exit" << endl;