X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.h;h=1c28f7dbe674342af2498d87cd9d223fd909c44d;hp=09bb4af7d185759ae1047e44d346048f07cb27a0;hb=80bee85d5f48cc1e06f16236a73c86a14c1d0756;hpb=c295599e4ad481f677b14cb0be14174b61ebff81 diff --git a/src/timeman.h b/src/timeman.h index 09bb4af7..1c28f7db 100644 --- a/src/timeman.h +++ b/src/timeman.h @@ -28,13 +28,15 @@ 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; } + void init(int myTime, int myInc, int movesToGo, int currentPly); + void pv_unstability(int curChanges, int prevChanges); + int available_time() const { return optimumSearchTime + unstablePVExtraTime; } + int maximum_time() const { return maximumSearchTime; } +private: int optimumSearchTime; int maximumSearchTime; - int extraSearchTime; + int unstablePVExtraTime; }; #endif // !defined(TIMEMAN_H_INCLUDED)