Here you can find the source of nanoToMillis(double nanos)
public static double nanoToMillis(double nanos)
//package com.java2s; //License from project: Open Source License public class Main { public static double nanoToMillis(double nanos) { return nanos / (double) 1e6; }//from w w w . j a v a2s . c o m }