X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=f59ded730d6f3f6f0751a568a7f55e476927994e;hp=5fcaa88738f21305dc66e4934f877c5b3a76288e;hb=b50ce5ebfbc9f8b043f0d915c47b0ac550d4affc;hpb=5900ab76a05b96f902fd3fc2794670916a7cb0ea diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 5fcaa887..f59ded73 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -111,7 +111,7 @@ void benchmark(const Position& current, istream& is) { int64_t nodes = 0; Search::StateStackPtr st; - Time time = Time::now(); + Time::point t = Time::now(); for (size_t i = 0; i < fens.size(); i++) { @@ -133,7 +133,7 @@ void benchmark(const Position& current, istream& is) { } } - int e = time.elapsed() + 1; // Assure positive to avoid a 'divide by zero' + int e = Time::now() - t + 1; // Assure positive to avoid a 'divide by zero' cerr << "\n===========================" << "\nTotal time (ms) : " << e