X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbenchmark.cpp;h=e27e81fee5a838142cccdce9b46622d76d8ef50b;hb=ebf3735754d015dfda72930a676b8b43f0614086;hp=cf0a315c1090a95236029977e845ca5d6d4c1199;hpb=098f645d26675bcf2180b290be77fe64a63de3ae;p=stockfish diff --git a/src/benchmark.cpp b/src/benchmark.cpp index cf0a315c..e27e81fe 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -144,7 +144,7 @@ void benchmark(const Position& current, istream& is) { uint64_t nodes = 0; Search::StateStackPtr st; - Time::point elapsed = Time::now(); + TimePoint elapsed = now(); for (size_t i = 0; i < fens.size(); ++i) { @@ -163,7 +163,7 @@ void benchmark(const Position& current, istream& is) { } } - elapsed = Time::now() - elapsed + 1; // Ensure positivity to avoid a 'divide by zero' + elapsed = now() - elapsed + 1; // Ensure positivity to avoid a 'divide by zero' dbg_print(); // Just before to exit