     }
   }
   stop = RTC::micros();
-  ns = (stop - start) / 1000L;
-  INFO("write serial(8)::pin.write();clock.write(1/0):%ul ns", ns);
+  ns = (stop - start);
+  INFO("pin.write();clock.write(1/0):%ul us", ns / 1000L);
   
   start = RTC::micros();
   for (uint16_t i = 0; i < 1000; i++) {

    __asm__ __volatile__("nop");
  }
  stop = RTC::micros();
  ns = (stop - start) / 1000L;
  INFO("write serial(8):pin.write(data,clk):%ul ns", ns);
  
  start = RTC::micros();
  for (uint16_t i = 0; i < 1000; i++) {

    analogPin >> var;
  }
  stop = RTC::micros();
  ns = (stop - start);
  INFO("analogPin >> var:%ul us", ns / 1000L);

  start = RTC::micros();
  for (uint16_t i = 0; i < 1000; i++)
    AnalogPin::sample(0);
  stop = RTC::micros();
  ns = (stop - start);
  INFO("AnalogPin::sample():%ul us\n", ns / 1000L);

  INFO("Measure the time to read analog pin with varying prescale", 0);
  for (uint8_t factor = 7; factor > 0; factor--) {
    AnalogPin::prescale(factor);
    start = RTC::micros();
    for (uint16_t i = 0; i < 1000; i++)
      analogPin.sample();
    stop = RTC::micros();
    ns = (stop - start);
    INFO("prescale(%d):bits(%d):analogPin.sample():%ul us", 
	 1 << factor, factor + 3, ns / 1000L);
  }
  trace.println();

