From: H.G. Muller Date: Mon, 18 Feb 2013 20:19:05 +0000 (+0100) Subject: Print game-list timing messages only in debug mode X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=50557f2672d69023a07441d0ae2ecea73d7f6af4;p=xboard.git Print game-list timing messages only in debug mode --- 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;