Rename of TimeMgr and friends

More natural naming IMO.

No functional change.
This commit is contained in:
Marco Costalba
2015-04-02 09:07:17 +02:00
parent 5d1b92e8f9
commit df722521ba
3 changed files with 21 additions and 21 deletions

View File

@@ -22,16 +22,16 @@
#include "misc.h"
/// The TimeManager class computes the optimal time to think depending on the
/// maximum available time, the game move number and other parameters.
/// The TimeManagement class computes the optimal time to think depending on
/// the maximum available time, the game move number and other parameters.
class TimeManager {
class TimeManagement {
public:
void init(const Search::LimitsType& limits, Color us, int ply, TimePoint now);
void pv_instability(double bestMoveChanges) { unstablePvFactor = 1 + bestMoveChanges; }
int available_time() const { return int(optimumTime * unstablePvFactor * 0.76); }
int maximum_time() const { return maximumTime; }
int elapsed_time() const { return now() - start; }
int available() const { return int(optimumTime * unstablePvFactor * 0.76); }
int maximum() const { return maximumTime; }
int elapsed() const { return now() - start; }
private:
TimePoint start;