X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=engineoutput.c;h=11229b9bdafcbde2551588d10453eed7bad7d8de;hb=2987ec348b8b2cbf38ba9a6a0793652a6b238ae8;hp=2532ef84676be57fe6dba60112b2fc8613795c9f;hpb=bf20302f6fa856f6c2d3f3feb5dfbf3fd1ab9652;p=xboard.git diff --git a/engineoutput.c b/engineoutput.c index 2532ef8..11229b9 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -606,6 +606,9 @@ UpdateControls (EngineOutputData *ed) } /* Time */ + if(time_secs >= 3600) + snprintf( s_time, sizeof(s_time)/sizeof(s_time[0]), "%d:%02d:%02d\t", time_secs / 3600, (time_secs / 60) % 60, time_secs % 60 ); + else snprintf( s_time, sizeof(s_time)/sizeof(s_time[0]), "%d:%02d.%02d\t", time_secs / 60, time_secs % 60, time_cent ); if(columnMask & 2) s_score[0] = NULLCHAR; // [HGM] hide: erase columns the user has hidden