+ void perft(Position& pos, UCIInputParser& uip) {
+
+ string token;
+ int depth, tm, n;
+
+ if (!(uip >> 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;
+ }