along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "timeman.h"
+
#include <algorithm>
-#include <cfloat>
#include <cmath>
#include "search.h"
-#include "timeman.h"
#include "uci.h"
namespace Stockfish {
// Never use more than 80% of the available time for this move
optimumTime = TimePoint(optScale * timeLeft);
- maximumTime = TimePoint(std::min(0.8 * limits.time[us] - moveOverhead, maxScale * optimumTime));
+ maximumTime = TimePoint(std::min(0.8 * limits.time[us] - moveOverhead, maxScale * optimumTime)) - 10;
if (Options["Ponder"])
optimumTime += optimumTime / 4;