X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=8f3e6ae1939d0640675d4fc3ff47a79be3b33d7f;hp=5c4c4e362368b121e0fb32d44e36fb0e1b1bc559;hb=ecc5ff6693f116f4a8ae5f5080252f29b279c0a1;hpb=7ea5659c5fe0325f1b6ee5fec06ecd0f066e81c3 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(); } }