Java Milliseconds durationInMillis(long startNano)

Here you can find the source of durationInMillis(long startNano)

Description

duration In Millis

License

Apache License

Declaration

public static long durationInMillis(long startNano) 

Method Source Code

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

public class Main {
    public static long durationInMillis(long startNano) {
        final long endNano = System.nanoTime();
        return (endNano - startNano) / 1000000;
    }/*from ww w. ja  va  2 s  .c om*/
}

Related

  1. decomposeMillis(long millis)
  2. delayUntilNextSecond(int millis)
  3. diffInMillis(long instantOne, long instantTwo)
  4. diffMillisec(String lhs, String rhs)
  5. diffTimeInMillis(long start, long end)
  6. elapsedMillis(long milliseconds)
  7. elapsedMillis(long startTime)
  8. elapsedMillis(long t0nanos, long t1nanos)
  9. ensureSleepMillis(long millis)