X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.h;h=09bb4af7d185759ae1047e44d346048f07cb27a0;hp=c93c6e7d2777144cbeef41b90f4130098da35b31;hb=c295599e4ad481f677b14cb0be14174b61ebff81;hpb=c0616d773dcb967dad755de74c36937fc5753b63;ds=sidebyside diff --git a/src/timeman.h b/src/timeman.h index c93c6e7d..09bb4af7 100644 --- a/src/timeman.h +++ b/src/timeman.h @@ -25,6 +25,16 @@ //// Prototypes //// -void calc_search_times(const int myTime, const int myInc, const int movesToGo, const int currentPly, int &minimumSearchTime, int &maximumSearchTime); +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)