import mm.display.MainWindow;
import mm.structures.ColorField;
import mm.structures.ColorPixel;

import java.awt.*;

public class Main {

    public static void main(String[] args) {

        final int N = 100;

        ColorPixel[] colors = new ColorPixel[]{
                new ColorPixel(new Color(124, 7, 142)),
                new ColorPixel(new Color(236, 74, 72)),
                new ColorPixel(new Color(255, 252, 88)),
                new ColorPixel(new Color(31, 162, 209)),
                new ColorPixel(new Color(128, 207, 12)),
                new ColorPixel(new Color(71, 34, 69)),
                new ColorPixel(new Color(1, 153, 138)),
                new ColorPixel(new Color(206, 23, 54)),
                new ColorPixel(new Color(247, 88, 48)),
                new ColorPixel(new Color(12, 8, 65))
        };

        long start = System.nanoTime();
        ColorField cf = ColorField.GenerateField(N, colors);
        System.out.printf("generiranje polja %d x %d: %.3fs\n", N, N, (System.nanoTime() - start) / 1e9);

        MainWindow window = new MainWindow(cf);

        long allStart = System.nanoTime();
        long iterations = 0;
        while(!cf.isAllSame()) {
            cf = cf.updateNeighbours();
            window.updateField(cf);
            iterations++;
        }
        long end = System.nanoTime() - allStart;
        System.out.printf("St iteracij: %d\n", iterations);
        System.out.printf("Celoten cas: %d\n", end);
    }
}

@@ -1388,16 +1388,17 @@
 racij: %25
+,
 d%5Cn%22, it
@@ -1453,17 +1453,20 @@
 s: %25
-d
+.3fs
 %5Cn%22, end
 );%0A 
@@ -1461,16 +1461,22 @@
 %5Cn%22, end
+ / 1e9
 );%0A    %7D

improve finish output