   midiIn->check();
 #endif
 
+
+#if ENABLE_TIMESTAMP_TEST
+  unsigned long microTimestamp = micros();
+  
+#endif
+
   /* SEND FTDI WRITE BUFFER - make sure that the FTDI buffer doesn't go over
    * 60 bytes. use a timer to sending an event character every 4 ms to
    * trigger the buffer to dump. */
 
   currentMillis = millis();
-  if (currentMillis - previousMillis > samplingInterval) {
+  if (samplingInterval == 0 || currentMillis - previousMillis > samplingInterval) {
     previousMillis += samplingInterval;
 
     /* ANALOGREAD - do all analogReads() at the configured sampling interval */

  #include "TestInterface.h"
#endif



void setupServer() {
    // must wait a bit for the MIDI device to boot up before it accepts our messages

/* timer variables */
unsigned long currentMillis;        // store the current value from millis()
unsigned long previousMillis;       // for comparison with currentMillis
int samplingInterval = 1;//19;          // how often to run the main loop (in ms). set to 0 to disable samplingThrottle.


// -----------------------------------------------------------------------------
