code: /** 
   * Test that multiple calls do not generate the same clock (timestamp)
   */
  @Test public void testMicrosecondsSync() throws Exception {
    ClockResolution clockResolution=HFactory.createClockResolution(ClockResolution.MICROSECONDS_SYNC);
    long previous=clockResolution.createClock();
    for (int i=0; i < 50; i++) {
      long current=clockResolution.createClock();
      log.debug("previous=" + previous + " - current="+ current);
      if (current == previous) {
        fail("Two calls to clock generated the same timestamp. (previous=" + previous + " - current="+ current+ "). Cycle:"+ i);
      }
      current=previous;
    }
  }
  