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