From: H.G. Muller Date: Sat, 1 Jun 2013 21:09:40 +0000 (+0200) Subject: Remember time of last root iter X-Git-Tag: 0.18~35 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3be71708763df67da795280f51e2dc75a7b4d954;p=hachu.git Remember time of last root iter --- diff --git a/hachu.c b/hachu.c index b28c59a..79c5b75 100644 --- a/hachu.c +++ b/hachu.c @@ -131,7 +131,7 @@ typedef struct { char *array, fenArray[4000], *reason; int bWidth, bHeight, bsize, zone, currentVariant, chuFlag, tenFlag, chessFlag, repDraws; int stm, xstm, hashKeyH, hashKeyL, framePtr, msp, nonCapts, rootEval, retMSP, retFirst, retDep, pvPtr, level, cnt50, mobilityScore; -int nodes, startTime, tlim1, tlim2, tlim3, repCnt, comp, abortFlag; +int nodes, startTime, lastRootMove, lastRootIter, tlim1, tlim2, tlim3, repCnt, comp, abortFlag; Move ponderMove; Move retMove, moveStack[10000], path[100], repStack[300], pv[1000], repeatMove[300], killer[100][2]; @@ -1847,9 +1847,10 @@ if(PATH) printf("%d:%2d:%d %3d %6x %-10s %6d %6d\n", level, depth, iterDep, curM } // next move cutoff: if(!level) { // root node + lastRootIter = GetTickCount() - startTime; if(postThinking > 0) { int i; // WB thinking output - printf("%d %d %d %d", iterDep, bestScore, (GetTickCount() - startTime)/10, nodes); + printf("%d %d %d %d", iterDep, bestScore, lastRootIter/10, nodes); if(ponderMove) printf(" (%s)", MoveToText(ponderMove, 0)); for(i=0; pv[i]; i++) printf(" %s", MoveToText(pv[i], 0)); if(iterDep == 1) printf(" { root eval = %4.2f dif = %4.2f; abs = %4.2f}", curEval/100., difEval/100., PSTest()/100.);