From: Marco Costalba Date: Tue, 10 Sep 2013 19:14:09 +0000 (+0200) Subject: Fix random moves when time < 10ms X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=49e110c52b19f5c99954d4797b8e991b0b60007c;hp=49e110c52b19f5c99954d4797b8e991b0b60007c;ds=sidebyside Fix random moves when time < 10ms In case we have less then 10ms to think as soon as we wake up the timer, it immediately fires and calls check_time() where due to condition: elapsed > TimeMgr.maximum_time() - 2 * TimerResolution the stop flag is set and search returns immediately, without actually search anything. Here the somewhat hacky fix is to start the timer after at least one iteration as been completed. No functional change. ---