X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=70bcafa9cfcf0a77a9cfdf7638effdf08d910f88;hp=8f3e6ae1939d0640675d4fc3ff47a79be3b33d7f;hb=86f04dbcc08e52864c1136d713996e3a0c8d2610;hpb=aa242d2f84eaf2307f34d5356079125eaf5ff26a diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 8f3e6ae1..70bcafa9 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -91,8 +91,8 @@ const vector Defaults = { void benchmark(const Position& current, istream& is) { string token; - Search::LimitsType limits; vector fens; + Search::LimitsType limits; // Assign default values to missing arguments string ttSize = (is >> token) ? token : "16"; @@ -103,10 +103,10 @@ void benchmark(const Position& current, istream& is) { Options["Hash"] = ttSize; Options["Threads"] = threads; - Search::reset(); + Search::clear(); if (limitType == "time") - limits.movetime = stoi(limit); // movetime is in ms + limits.movetime = stoi(limit); // movetime is in millisecs else if (limitType == "nodes") limits.nodes = stoi(limit); @@ -151,7 +151,7 @@ void benchmark(const Position& current, istream& is) { cerr << "\nPosition: " << i + 1 << '/' << fens.size() << endl; if (limitType == "perft") - nodes += Search::perft(pos, limits.depth * ONE_PLY); + nodes += Search::perft(pos, limits.depth * ONE_PLY); else {