Java Utililty Methods Nanosecond to Milliseconds

List of utility methods to do Nanosecond to Milliseconds

Description

The list of methods to do Nanosecond to Milliseconds are organized into topic(s).

Method

longnanosToMillis(final long nanos)
Converts the provided number of nanoseconds to milliseconds.
return Math.max(0L, Math.round(nanos / 1_000_000.0d));
longnanosToMillis(long l)
nanos To Millis
return Math.round(((double) l) / nanosInMillisecond);
longnanosToMillis(long nanos)
Convert nanoseconds time to milliseconds
return nanos / nanosPerMilli;
floatnanosToMillisFloat(final long currentGuiTime)
nanos To Millis Float
return (currentGuiTime) / 1000000.0f;
doublenanoToMillis(double nanos)
nano To Millis
return nanos / (double) 1e6;
longnanoToMillis(final long nano)
nano To Millis
return nano / 1000000L;