class TimeManagement {
public:
void init(Search::LimitsType& limits, Color us, int ply);
- void pv_instability(double bestMoveChanges) { unstablePvFactor = 1 + bestMoveChanges; }
- int available() const { return int(optimumTime * unstablePvFactor * 0.968); }
+ int optimum() const { return optimumTime; }
int maximum() const { return maximumTime; }
int elapsed() const { return int(Search::Limits.npmsec ? Threads.nodes_searched() : now() - startTime); }
TimePoint startTime;
int optimumTime;
int maximumTime;
- double unstablePvFactor;
};
extern TimeManagement Time;