Author: Lex Loep
Date: 05:21:14 01/26/02
Go up one level in this thread
On January 26, 2002 at 06:43:53, Ralf Elvsén wrote: >On January 26, 2002 at 03:08:25, Lex Loep wrote: > >>On January 25, 2002 at 12:26:12, Vincent Lejeune wrote: >> >>>On January 25, 2002 at 11:52:03, Ed Schröder wrote: >>> >>>>00:00:00.8 -1,77 1 79 b5 bxc5 bxa4 >>>>00:00:00.9 0,58 1 97 d5 >>>>00:00:00.0 0,62 1 137 Rf5 >>>>00:00:00.1 0,53 2 202 Rf5 f4 >>>>00:00:00.3 0,71 2 441 d5 cxd5 Rxd5 >>>>00:00:00.3 0,71 2 700 Re5 >>>>00:00:00.5 1,50 2 733 Re5 Kd3 Rxe4 Kxe4 >>>>00:00:00.1 1,50 3 1434 Re5 Kd3 Rxe4 Kxe4 >>>>00:00:00.1 1,52 4 7184 Re5 Rxe5 dxe5 Kd3 Kg7 Ke4 Kf6 >>>>00:00:00.1 1,50 5 24102 Re5 Rxe5 dxe5 Kd3 Ke8 Ke4 f6 f3 >>>>00:00:00.3 1,50 6 31180 Re5 Rxe5 dxe5 Kd3 Ke8 Ke4 f6 f3 >>>>00:00:00.6 1,53 7 93348 Re5 Rxe5 dxe5 Kd3 Ke8 Ke4 f6 a5 >>>>00:00:00.1 1,53 8 161786 Re5 Rxe5 dxe5 Kd3 Ke8 Ke4 f6 a5 >>> >>>It seems that WIndows-Rebel have the same bug in timing as chesstiger have too >>> >>>the tenth of second are not counted logically :o) >> >>Very stange indeed. It must be a display thing as the gui just calculates >>the elapsed time between start of thinking and engine returning these >>variants. >> >>> >>>how do you "round" the value ?? >> >> >>DWORD elapsed=::GetTickCount()-m_dwStartTime; >>DWORD hr,min,sec,ms; >>ms = elapsed%10; // .1 seconds >>elapsed/=1000; >>hr=elapsed/3600L; >>min=(elapsed/60)%60; >>sec=elapsed%60; >>wsprintf(tm,"%02d:%02d:%02d.%d",hr,min,sec,ms); > >I don't get this. It is apparent that the variable "elapsed" has the number >of milliseconds elapsed. But then elapsed % 10 gives the number >of ms that "doesn't belong" to even centisesonds. And this will be >in the range from 0 to 9. If you want to show ms, you should write >ms = elapsed%1000 but the comment indicated tenths of seconds which >should read e.g. ms = (elapsed/100)%10 . > >The last formula was my fourth try so I wont hold this against you :) You very well could be right. How about this one: elapsed%1000 gives me the milliseconds, then (elapsed%1000)/100 should be the 10ths seconds. Thanks Lex > >Ralf > >> >>Seems to me the clock is running backwards :) >> >>anyway I check it further. >> >>Lex
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.