]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Retire Time::restart()
[stockfish] / src / thread.cpp
index 50412468ebb83222caf15a8b4b9835f018b7aa63..d9fa9c512c53cc1a5919ebdf2926035876b793a3 100644 (file)
@@ -417,7 +417,7 @@ void ThreadPool::start_searching(const Position& pos, const LimitsType& limits,
                                  const std::vector<Move>& searchMoves, StateStackPtr& states) {
   wait_for_search_finished();
 
-  SearchTime.restart(); // As early as possible
+  SearchTime = Time::current_time(); // As early as possible
 
   Signals.stopOnPonderhit = Signals.firstRootMove = false;
   Signals.stop = Signals.failedLowAtRoot = false;