]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Lazy SMP
[stockfish] / src / benchmark.cpp
index 5c4c4e362368b121e0fb32d44e36fb0e1b1bc559..8f3e6ae1939d0640675d4fc3ff47a79be3b33d7f 100644 (file)
@@ -156,9 +156,10 @@ void benchmark(const Position& current, istream& is) {
       else
       {
           Search::StateStackPtr st;
+          limits.startTime = now();
           Threads.start_thinking(pos, limits, st);
           Threads.main()->join();
-          nodes += Search::RootPos.nodes_searched();
+          nodes += Threads.nodes_searched();
       }
   }