Author: Frank Phillips
Date: 00:21:11 05/13/01
Go up one level in this thread
On May 12, 2001 at 21:23:19, Vincent Diepeveen wrote: >On May 12, 2001 at 03:22:30, Frank Phillips wrote: > >>When my program is running on FICS under Linux and accessing the EGTBs >>(performing a lot of disk activity), it seems to forget to look at the input >>from the server for long periods of time, so that the opponent's clock goes >>negative. When not accessing the EGTBs (or running under Windows) everything is >>fine. > >you probably get the wrong time from the system. >Instead of the real time used >by a process you probably get the process system time which is >very little as all times goes to the FILE-OS or whatever. In short >ask the REAL clock instead of the system time your application is >needed! > >>(Frustrating, since I may have to move to Linux if MS decide next that your >>first born is part of the licence fee for using their sotware, in interests of >>the consumer and to protect freedom and democracy against the evil threat of >>open source software of course.). >> >>Any help appreciated. >> >>Frank Vincent I used gettimeofday, which I think is real time? Frank #if defined (LINUX) struct timeval timeval; struct timezone timezone; gettimeofday(&timeval, &timezone); return ((unsigned int) timeval.tv_sec*TIME_UNIT+ timeval.tv_usec/1E6*TIME_UNIT)); #endif
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.