 
 #ifdef DETAIL_TIMING
   int32_t start_micros;
-  int32_t calc_micros;
-  int32_t total_micros;
+  int32_t end_micros;
 #endif
 
 volatile int64_t PICcount;

         channels[i].totalize++;                  // increment number of events   
         channels[i].ready_next();                // Re-arm for next measurement, clear TDC INTB
       
       #ifdef DETAIL_TIMING      
         //calc_micros = micros() - start_micros;         
       #endif
       
      // if poll character is not null, only output if we've received that character via serial
      // NOTE: this may provide random results if measuring timestamp from both channels!
      if ( (channels[i].totalize > 2) &&             // throw away first readings      

       if (i == 0) {CLR_LED_A;CLR_EXT_LED_A;};
       if (i == 1) {CLR_LED_B;CLR_EXT_LED_B;};
       
      #ifdef DETAIL_TIMING
        end_micros = micros() - start_micros;               
        Serial.println(end_micros);
      #endif

      } // if INTB
