code: private String formatTime(final long elapsedTicks) {
  		String formattedTime = "";
  		// should be hh:mm:ss.SSS, but 00 starts with 01
  		SimpleDateFormat formatter = new SimpleDateFormat("00:mm:ss.SSS");
  		Calendar calendar = Calendar.getInstance();
  
  		if (elapsedTicks <= 9999) {
  			calendar.setTimeInMillis(0);
  			formattedTime = formatter.format(calendar.getTime()) + String.valueOf(String.format("%04d", elapsedTicks));
  		} else {
  			calendar.setTimeInMillis(elapsedTicks * nsPerTick / nsPerMs);
  			String formattedTicks = String.format("%07d", elapsedTicks);
  			formattedTicks = formattedTicks.substring(formattedTicks.length() - 4);
  			formattedTime = formatter.format(calendar.getTime()) + formattedTicks;
  		}
  		return formattedTime;
  	}
docs: Gets the total elapsed time with format 00:00:00.0000000 = 00:mm:ss.SSS +
  #### Ticks
  
  @param elapsedTicks
  elapsed ticks between start and stop nano time