Here you can find the source of millisToNanos(int i)
public static long millisToNanos(int i)
//package com.java2s; //License from project: Apache License public class Main { private static final long nanosInMillisecond = 1000000L; public static long millisToNanos(int i) { return i * nanosInMillisecond; }//from w w w . j a va2s . c o m }