- hypMyTime = std::max(hypMyTime, 0);
-
- t1 = minThinkingTime + remaining<OptimumTime>(hypMyTime, hypMTG, currentPly, slowMover);
- t2 = minThinkingTime + remaining<MaxTime>(hypMyTime, hypMTG, currentPly, slowMover);
-
- optimumSearchTime = std::min(optimumSearchTime, t1);
- maximumSearchTime = std::min(maximumSearchTime, t2);
+ // Convert from millisecs to nodes
+ limits.time[us] = (int)availableNodes;
+ limits.inc[us] *= npmsec;
+ limits.npmsec = npmsec;