X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.h;h=29a92e6df48f05b9dfd00c0745e393cc1b3a7cde;hp=dfff89abd9a3c27ad21e42d3fb50b8cb49b69164;hb=c9b24c3358a26afdec5e33e369b6192039562971;hpb=0fcda095df1caa860e8e3f3a714d5545ec9dc122 diff --git a/src/timeman.h b/src/timeman.h index dfff89ab..29a92e6d 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 SearchLimits& limits, int fullMoveNumber); void pv_instability(int curChanges, int prevChanges); int available_time() const { return optimumSearchTime + unstablePVExtraTime; } int maximum_time() const { return maximumSearchTime; }