X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=8f3e6ae1939d0640675d4fc3ff47a79be3b33d7f;hp=5c4c4e362368b121e0fb32d44e36fb0e1b1bc559;hb=55758344d3ccf49353bcd8f3a06a4553ff1b753a;hpb=3e2591d83c285597a7400c79b61ab9dc38875163 diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 5c4c4e36..8f3e6ae1 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -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(); } }