X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=c186436e960dbbc08fc5daad5311eafa2786e867;hp=9f32dbae3a2f3e6a1d2b0c76152c59090b6e59fb;hb=9d7a36121a2a192f530933f7fdd77f37db19142e;hpb=4e59c5c2746741e7aedd451ea16b792d1568e5c4 diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 9f32dbae..c186436e 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2010 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2008-2012 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -71,9 +71,9 @@ void benchmark(int argc, char* argv[]) { string fenFile = argc > 5 ? argv[5] : "default"; string valType = argc > 6 ? argv[6] : "depth"; - Options["Hash"].set_value(ttSize); - Options["Threads"].set_value(threads); - Options["OwnBook"].set_value("false"); + Options["Hash"] = ttSize; + Options["Threads"] = threads; + Options["OwnBook"] = false; // Search should be limited by nodes, time or depth ? if (valType == "nodes") @@ -107,7 +107,7 @@ void benchmark(int argc, char* argv[]) { // Ok, let's start the benchmark ! totalNodes = 0; - time = get_system_time(); + time = system_time(); for (size_t i = 0; i < fenList.size(); i++) { @@ -131,7 +131,7 @@ void benchmark(int argc, char* argv[]) { } } - time = get_system_time() - time; + time = system_time() - time; cerr << "\n===============================" << "\nTotal time (ms) : " << time