mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Fix regression with printing of debug info
Output of debug info each second was disabled due to recent patches. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -2201,8 +2201,8 @@ void do_timer_event() {
|
|||||||
static int lastInfoTime;
|
static int lastInfoTime;
|
||||||
int e = elapsed_search_time();
|
int e = elapsed_search_time();
|
||||||
|
|
||||||
// Print debug information every second
|
// Print debug information every one second
|
||||||
if (get_system_time() - lastInfoTime >= 1000)
|
if (!lastInfoTime || get_system_time() - lastInfoTime >= 1000)
|
||||||
{
|
{
|
||||||
lastInfoTime = get_system_time();
|
lastInfoTime = get_system_time();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user