X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.h;h=703dc234b7cf630fdbe3bce62aae8a066377bd6b;hp=dfff89abd9a3c27ad21e42d3fb50b8cb49b69164;hb=ffa75215cc06d105bc2b43ddb8ed5d4deccd8988;hpb=0fcda095df1caa860e8e3f3a714d5545ec9dc122 diff --git a/src/timeman.h b/src/timeman.h index dfff89ab..703dc234 100644 --- a/src/timeman.h +++ b/src/timeman.h @@ -20,10 +20,12 @@ #if !defined(TIMEMAN_H_INCLUDED) #define TIMEMAN_H_INCLUDED +struct SearchLimits; + class TimeManager { public: - void init(int myTime, int myInc, int movesToGo, int currentPly); + void init(const Search::LimitsType& limits, int currentPly); void pv_instability(int curChanges, int prevChanges); int available_time() const { return optimumSearchTime + unstablePVExtraTime; } int maximum_time() const { return maximumSearchTime; }