#include <cmath>
#include "misc.h"
+#include "timeman.h"
#include "ucioption.h"
////
//// Functions
////
-void get_search_times(int myTime, int myInc, int movesToGo, int currentPly,
- int* optimumSearchTime, int* maximumSearchTime)
+void TimeManager::update(int myTime, int myInc, int movesToGo, int currentPly,
+ int* optimumSearchTime, int* maximumSearchTime)
{
/* We support four different kind of time controls:
*maximumSearchTime = Min(*maximumSearchTime, aTime);
}
+ if (get_option_value_bool("Ponder"))
+ *optimumSearchTime += *optimumSearchTime / 4;
+
// Make sure that maxSearchTime is not over absoluteMaxSearchTime
*optimumSearchTime = Min(*optimumSearchTime, *maximumSearchTime);
}