Here you can find the source of getMillisPartFromNanos(long nanos)
Parameter | Description |
---|---|
nanos | a parameter |
public static long getMillisPartFromNanos(long nanos)
//package com.java2s; public class Main { /** {@link int} The ONE_MILLION. */ public static final int ONE_MILLION = 1000000; /**//from w w w. ja v a 2 s . c om * getMillisPartFromNanos. * * @param nanos * @return */ public static long getMillisPartFromNanos(long nanos) { return nanos > 999999 ? nanos / ONE_MILLION : 0; } }