]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Sync with master
[stockfish] / src / benchmark.cpp
index cf0a315c1090a95236029977e845ca5d6d4c1199..e27e81fee5a838142cccdce9b46622d76d8ef50b 100644 (file)
@@ -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