Print game-list timing messages only in debug mode
[xboard.git] / ngamelist.c
index d43920b..cf937ac 100644 (file)
@@ -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;