]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
New History Bonus Formula
[stockfish] / src / benchmark.cpp
index 07e1341ec354c77c2c973ef318a947012baa5064..8f3e6ae1939d0640675d4fc3ff47a79be3b33d7f 100644 (file)
@@ -26,7 +26,6 @@
 #include "position.h"
 #include "search.h"
 #include "thread.h"
-#include "tt.h"
 #include "uci.h"
 
 using namespace std;
@@ -143,7 +142,6 @@ void benchmark(const Position& current, istream& is) {
   }
 
   uint64_t nodes = 0;
-  Search::StateStackPtr st;
   TimePoint elapsed = now();
 
   for (size_t i = 0; i < fens.size(); ++i)
@@ -157,9 +155,11 @@ 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();
       }
   }