From 50557f2672d69023a07441d0ae2ecea73d7f6af4 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 18 Feb 2013 21:19:05 +0100 Subject: [PATCH] Print game-list timing messages only in debug mode --- gamelist.c | 2 +- ngamelist.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gamelist.c b/gamelist.c index c8bdc4e..0c2f1b6 100644 --- a/gamelist.c +++ b/gamelist.c @@ -392,7 +392,7 @@ GameListBuild (FILE *f) } } } -GetTimeMark(&t2);printf("GameListBuild %ld msec\n", SubtractTimeMarks(&t2,&t)); + if(appData.debugMode) { GetTimeMark(&t2);printf("GameListBuild %ld msec\n", SubtractTimeMarks(&t2,&t)); } quickFlag = 0; PackGame(boards[scratch]); // for appending end-of-game marker. DisplayTitle("WinBoard"); diff --git a/ngamelist.c b/ngamelist.c index d43920b..cf937ac 100644 --- a/ngamelist.c +++ b/ngamelist.c @@ -195,7 +195,7 @@ GameListPrepare (int byPos, int narrow) lg->position = pos; lg = (ListGame *) lg->node.succ; } -GetTimeMark(&t2);printf("GameListPrepare %ld msec\n", SubtractTimeMarks(&t2,&t)); + if(appData.debugMode) { GetTimeMark(&t2);printf("GameListPrepare %ld msec\n", SubtractTimeMarks(&t2,&t)); } DisplayTitle("XBoard"); *st = NULL; return listLength; -- 1.7.0.4