 
/**********************************************************************/
#if 0   // for unix,  do the right if endif stuff

float speedometer(void){
#ifndef __MWERKS__
double dbl; static double rate; static int ii=0;
static struct timezone notused; static struct timeval now, then;
   if(++ii % 8 == 0){  /* 8 times around measure time */
      gettimeofday(&now, &notused); /* elapsed time */
      dbl =  (double)(now.tv_sec - then.tv_sec)
         +(double)(now.tv_usec - then.tv_usec)/1000000;
      then = now;  rate = 8/dbl;
      }
   return((float)rate);
#else
	static int ii=0;
  	static long oldticks=-1;
  	long newticks;
  	static float rate=0;
  	if (++ii %8==0){
  		newticks=TickCount();
  		rate=8.0/((float)(newticks-oldticks)/60.0);
  		oldticks=newticks;
  	}
  	return rate;
#endif 	
}

