Java tutorial
//package com.java2s; //License from project: Apache License import java.util.concurrent.TimeUnit; public class Main { public static long millitime() { return TimeUnit.MILLISECONDS.convert(System.nanoTime(), TimeUnit.NANOSECONDS); } }