package org.musetest.core.util;

import java.util.concurrent.*;

/**
 * @author Christopher L Merrill (see LICENSE.txt for license details)
 */
public class DurationFormat
    {
    public static String formatMinutesSeconds(long duration_nanos)
        {
        long milliseconds = duration_nanos / 1000000;
        long min = TimeUnit.MILLISECONDS.toMinutes(milliseconds) % 60;
        long sec = TimeUnit.MILLISECONDS.toSeconds(milliseconds) % 60;
        long ms = milliseconds % 1000;
        return String.format("%02d:%02d.%03d", min, sec, ms);
        }
    }



@@ -226,87 +226,31 @@
 ong 
-duration_nanos)%0A        %7B%0A        long milliseconds = duration_nanos / 1000000;
+milliseconds)%0A        %7B
 %0A   

fix for change in event timestamp units