Here you can find the source of durationInMillis(long startNano)
public static long durationInMillis(long startNano)
//package com.java2s; //License from project: Apache License public class Main { public static long durationInMillis(long startNano) { final long endNano = System.nanoTime(); return (endNano - startNano) / 1000000; }/*from ww w. ja va 2 s .c om*/ }