public static void main(String[] args) {
        SynchronizationTest1 test = new SynchronizationTest1();
        long t1, t2, delta_t;
        long sumTestX = 0, sumTestY = 0, sumTestZ = 0, sumTestV = 0;

        // provest zadany pocet testu
        for (int i = 0; i < 10; i++) {
            // provest test a zmerit cas behu testu
            t1 = System.nanoTime();
            for (int j = 0; j < ITERATIONS; j++) {
                test.testX();
            }
            t2 = System.nanoTime();
            delta_t = t2 - t1;
            if (i > WARMUP) {
                sumTestX += delta_t;
            }

            // vypis casu pro prvni test
            System.out.format("Round #%2d testX() time: %,12d ns\n", i, delta_t);

            // provest test a zmerit cas behu testu
            t1 = System.nanoTime();
            for (int j = 0; j < ITERATIONS; j++) {
                test.testY();
            }
            t2 = System.nanoTime();
            delta_t = t2 - t1;
            if (i > WARMUP) {
                sumTestY += delta_t;
            }

            // vypis casu pro druhy test
            System.out.format("Round #%2d testY() time: %,12d ns\n", i, delta_t);

            // provest test a zmerit cas behu testu
            t1 = System.nanoTime();
            for (int j = 0; j < ITERATIONS; j++) {
                test.testZ();
            }
            t2 = System.nanoTime();
            delta_t = t2 - t1;
            if (i > WARMUP) {
                sumTestZ += delta_t;
            }

            // vypis casu pro treti test
            System.out.format("Round #%2d testZ() time: %,12d ns\n", i, delta_t);

            // provest test a zmerit cas behu testu
            t1 = System.nanoTime();
            for (int j = 0; j < ITERATIONS; j++) {
                test.testV();
            }
            t2 = System.nanoTime();
            delta_t = t2 - t1;
            if (i > WARMUP) {
                sumTestV += delta_t;
            }

            // vypis casu pro treti test
            System.out.format("Round #%2d testV() time: %,12d ns\n", i, delta_t);
        }

        // vypis vsech ctyr kumulativnich casu
        System.out.format("Cumulative time for testX(): %,12d ns\n", sumTestX);
        System.out.format("Cumulative time for testY(): %,12d ns\n", sumTestY);
        System.out.format("Cumulative time for testZ(): %,12d ns\n", sumTestZ);
        System.out.format("Cumulative time for testV(): %,12d ns\n", sumTestV);
    }