X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=e27e81fee5a838142cccdce9b46622d76d8ef50b;hp=cf0a315c1090a95236029977e845ca5d6d4c1199;hb=0b36ba74fc0a80388cac43a35962ffc73c01b071;hpb=153fb216a122b8e972a18c28e1c9f4df0a795128 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