X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftimeman.h;h=09bb4af7d185759ae1047e44d346048f07cb27a0;hb=c295599e4ad481f677b14cb0be14174b61ebff81;hp=d187475fba0de2392820c9719fe5cafadc093c8a;hpb=391cd57b52a18166f90202f01f28be1f3bf24d4c;p=stockfish diff --git a/src/timeman.h b/src/timeman.h index d187475f..09bb4af7 100644 --- a/src/timeman.h +++ b/src/timeman.h @@ -25,7 +25,16 @@ //// Prototypes //// -void get_search_times(int myTime, int myInc, int movesToGo, int currentPly, - int* maxSearchTime, int* absoluteMaxSearchTime); +class TimeManager { +public: -#endif // !defined(SEARCH_H_INCLUDED) + void update(int myTime, int myInc, int movesToGo, int currentPly); + void best_move_changes(int curIter, int prevIter); + int available_time() { return optimumSearchTime + extraSearchTime; } + + int optimumSearchTime; + int maximumSearchTime; + int extraSearchTime; +}; + +#endif // !defined(TIMEMAN_H_INCLUDED)