]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Use atomics instead of volatile
[stockfish] / src / uci.cpp
index 4e56542ab0fc7b14b60bfec328aeadadda54ce87..c5dbafae32aba842ed13c2f8ee502c437ca98ca1 100644 (file)
@@ -112,6 +112,8 @@ namespace {
     Search::LimitsType limits;
     string token;
 
+    limits.startTime = now(); // As early as possible!
+
     while (is >> token)
         if (token == "searchmoves")
             while (is >> token)