On Tue, 4 May 1999, The Merciless Lord of Everything wrote: >-- *SNIP* -- >do { > if (select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, &timeout) < 0) { > if (errno != EINTR) { > perror("Select sleep"); > exit(1); > } > } > gettimeofday(&now, (struct timezone *) 0); > timeout = timediff(last_time, now); >} while (timeout.tv_usec || timeout.tv_sec); >-- *SNIP* -- log() the values of tv_usec and tv_sec. >compile, Run and everything works perfect, This comm.c is from an old >bpl11, so it might be that it has changed, but could someone enlighten me >*WHAT* this loop REALLY does?? It makes sure your pulses are .1 second long. You may have just broken your timer. -- George Greer greerga@circlemud.org +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST