vector<string> fens;
Search::LimitsType limits;
- int time;
int64_t nodes = 0;
// Assign default values to missing arguments
Options["Hash"] = ttSize;
Options["Threads"] = threads;
- Options["OwnBook"] = false;
if (valType == "time")
limits.maxTime = 1000 * atoi(valStr.c_str()); // maxTime is in ms
else
fens.assign(Defaults, Defaults + 16);
- time = system_time();
+ Time time = Time::current_time();
for (size_t i = 0; i < fens.size(); i++)
{
}
}
- time = system_time() - time;
+ int e = time.elapsed();
cerr << "\n==========================="
- << "\nTotal time (ms) : " << time
+ << "\nTotal time (ms) : " << e
<< "\nNodes searched : " << nodes
- << "\nNodes/second : " << int(nodes / (time / 1000.0)) << endl;
+ << "\nNodes/second : " << int(nodes / (e / 1000.0)) << endl;
}