X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=8f3e6ae1939d0640675d4fc3ff47a79be3b33d7f;hp=f58d82e2cdf3df840906aee516c2ca72d95b89ce;hb=aa242d2f84eaf2307f34d5356079125eaf5ff26a;hpb=087b638f6c8982927cbff0d44d6fb825a567e182 diff --git a/src/benchmark.cpp b/src/benchmark.cpp index f58d82e2..8f3e6ae1 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -26,7 +26,6 @@ #include "position.h" #include "search.h" #include "thread.h" -#include "tt.h" #include "uci.h" using namespace std; @@ -157,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(); } }