-
- // Set best timer interval to avoid lagging under time pressure. Timer is
- // used to check for remaining available thinking time. Timer will be started
- // at the end of first iteration to avoid returning with a random move.
- Threads.timer->msec =
- Limits.use_time_management() ? std::min(100, std::max(TimeMgr.available_time() / 16, TimerResolution)) :
- Limits.nodes ? 2 * TimerResolution : 100;