Page 1 of 1

Fetching time left from WinBoard

PostPosted: 15 Dec 2009, 16:45
by matematiko
Hello all,

I deleted an early post cause I tought I didnt need an answer any more but I was wrong.

While runing on ICS mode, is there a way to fetch or retrieved the clocks (time left)?, the reason for this need is that the server I am connecting to requieres my ICS emulator to send along with the move my time left in seconds.

Thanks in advance,

matematiko

Re: Fetching time left from WinBoard

PostPosted: 20 Dec 2009, 03:11
by H.G.Muller
WinBoard expects to get the time from the ICS, it never sends it. Adapters like timeseal or timestamp probably do keep track of the time at the user end, and send it to the ICS together with each command, and the ICS trusts them.

I think your ICS emulator should keep track of the time, if it emulates a client (towards the server you want to run on) that is expected to do so. (You probably don't want to emulate a timeseal decoder at the ICS end.)

Re: Fetching time left from WinBoard

PostPosted: 20 Dec 2009, 03:35
by matematiko
That's what I ended up doing, keeping track of time and compute the time left and parse that to this particular server.

The possible small inaccuracy it is negligible because that server rounds to seconds and ignore milliseconds.

Thanks for taking the time to answer Mr. Muller.