Here you can find the source of nanoToMilli(double nanoseconds)
public static float nanoToMilli(double nanoseconds)
//package com.java2s; //License from project: Open Source License public class Main { public static float nanoToMilli(double nanoseconds) { return (float) nanoseconds / 1000 / 1000; }/* ww w . ja v a 2 s . c o m*/ }