package org.ntlab.pushPullRefactoring; public class Measurement { static long start; static long end; public static void start() { start = System.nanoTime(); } public static void endTime() { end = System.nanoTime(); long t = end - start; System.out.println("time : " + t ); } }