X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.h;h=09bb4af7d185759ae1047e44d346048f07cb27a0;hp=46bc94e157c9fa85b5d48030b31f8dcb8a99b8f2;hb=c295599e4ad481f677b14cb0be14174b61ebff81;hpb=fe23c70cf163514620deba3c4ef9a3b8f4ceabb1 diff --git a/src/timeman.h b/src/timeman.h index 46bc94e1..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* optimumSearchTime, int* maximumSearchTime); +class TimeManager { +public: + + 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)