   #include "TestInterface.h"
 #endif
 
-
+#define ENABLE_TIMESTAMP_TEST 0
+#if ENABLE_TIMESTAMP_TEST
+
+#define TEST_TIMESTAMPS_LENGTH 512
+int testTimestampsIdx = 0;
+unsigned long testTimestamps[TEST_TIMESTAMPS_LENGTH];
+
+#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)


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

  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 (samplingInterval == 0 || currentMillis - previousMillis > samplingInterval) {
    previousMillis += samplingInterval;

    /* ANALOGREAD - do all analogReads() at the configured sampling interval */
