public static String formatTimeWithMillis(Date date){
synchronized (dateMillisFormat) {
    return dateMillisFormat.format(date);
  }
}

public static String formatTimeWithMillis ( Date date ) { synchronized ( dateMillisFormat ) { return dateMillisFormat . format ( date ) ; } }
formats the time to a string value with milliseconds .
