Supply time and node count for engines that do not give it
[uci2wb.git] / UCI2WB.c
index 145a96c..29d4040 100644 (file)
--- a/UCI2WB.c
+++ b/UCI2WB.c
@@ -271,7 +271,7 @@ Engine2GUI()
            if(lastScore == 100001 && iniPos[0] != 'f') { printf("%s {mate}\n", stm == BLACK ? "1-0" : "0-1"); computer = NONE; }\r
        }\r
        else if(!strcmp(command, "info")) {\r
-           int d=0, s=0, t=0, n=0;\r
+           int d=0, s=0, t=(GetTickCount() - startTime)/10, n=1;\r
            char *pv;\r
            if(sscanf(line+5, "string times @ %c", &dummy) == 1) { printf("# %s", line+12); continue; }\r
            if(collect && (pv = strstr(line+5, "currmove "))) {\r