X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=3a4e157f8b145f1ba43de49b58c7b6db4093f643;hp=7a5db255142e91b6d696f516ccd58e4945e948d9;hb=cccf3c815c2f2be884fac4248a2be91b6823df8a;hpb=926f215061311392bc26c7bc4bde5b719dbab4e5 diff --git a/src/timeman.cpp b/src/timeman.cpp index 7a5db255..3a4e157f 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -80,7 +80,7 @@ namespace { /// inc > 0 && movestogo == 0 means: x basetime + z increment /// inc > 0 && movestogo != 0 means: x moves in y minutes + z increment -void TimeManagement::init(Search::LimitsType& limits, Color us, int ply, TimePoint now) +void TimeManagement::init(Search::LimitsType& limits, Color us, int ply) { int minThinkingTime = Options["Minimum Thinking Time"]; int moveOverhead = Options["Move Overhead"]; @@ -102,7 +102,7 @@ void TimeManagement::init(Search::LimitsType& limits, Color us, int ply, TimePoi limits.npmsec = npmsec; } - start = now; + startTime = limits.startTime; unstablePvFactor = 1; optimumTime = maximumTime = std::max(limits.time[us], minThinkingTime);