- assert(pos.is_ok());
-
- return think(pos, infinite, ponder, time, inc, movesToGo,
- depth, nodes, moveTime, searchMoves);
- }
-
- void perft(Position& pos, UCIParser& up) {
-
- int depth, tm;
- int64_t n;
-
- if (!(up >> depth))
- return;
-
- tm = get_system_time();
-
- n = perft(pos, depth * ONE_PLY);
-
- tm = get_system_time() - tm;
- std::cout << "\nNodes " << n
- << "\nTime (ms) " << tm
- << "\nNodes/second " << int(n / (tm / 1000.0)) << std::endl;