Here you can find the source of elapsedTime(long startTime, long endTime, double units)
private static double elapsedTime(long startTime, long endTime, double units)
//package com.java2s; public class Main { private static double elapsedTime(long startTime, long endTime, double units) { return (endTime - startTime) / units; }/*from ww w .j a v a 2 s . c om*/ }