Here you can find the source of toMilliseconds(long nanoSeconds)
public static Double toMilliseconds(long nanoSeconds)
//package com.java2s; //License from project: Open Source License public class Main { private static final Double MILLISECONDS = 1000000D; public static Double toMilliseconds(long nanoSeconds) { return nanoSeconds / MILLISECONDS; }//from www . java 2 s . co m }