]> git.sesse.net Git - stockfish/blobdiff - src/timeman.h
Move time related global variables under TimeManager
[stockfish] / src / timeman.h
index 03dc991dd842828c64219e7b26e8ae1190f3b2a9..09bb4af7d185759ae1047e44d346048f07cb27a0 100644 (file)
 class TimeManager {
 public:
 
 class TimeManager {
 public:
 
-  void update(int myTime, int myInc, int movesToGo, int currentPly,
-              int* optimumSearchTime, int* maximumSearchTime);
+  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)
 };
 
 #endif // !defined(TIMEMAN_H_INCLUDED)