public static String printDateNoMilliSeconds(long time, TimeZone tz) {
        Calendar cal = Calendar.getInstance(tz);
        cal.setTimeInMillis(time);
        return String.format(Locale.ENGLISH, "%04d-%02d-%02d %02d:%02d:%02d",
                cal.get(Calendar.YEAR),
                cal.get(Calendar.MONTH) + 1,
                cal.get(Calendar.DAY_OF_MONTH),
                cal.get(Calendar.HOUR_OF_DAY),
                cal.get(Calendar.MINUTE),
                cal.get(Calendar.SECOND));
    }
Implementation of timer used when running for real.
clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/RealTimer.java