Java Nanosecond to Milliseconds nanosToMillis(long l)

Here you can find the source of nanosToMillis(long l)

Description

nanos To Millis

License

Apache License

Declaration

public static long nanosToMillis(long l) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static final long nanosInMillisecond = 1000000L;

    public static long nanosToMillis(long l) {
        return Math.round(((double) l) / nanosInMillisecond);
    }/*from   w  w  w  . ja  v a2  s  . c o  m*/
}

Related

  1. nanosToMillis(final long nanos)
  2. nanosToMillis(long nanos)
  3. nanosToMillisFloat(final long currentGuiTime)
  4. nanoToMillis(double nanos)
  5. nanoToMillis(final long nano)