Java Milliseconds elapsedMillis(long startTime)

Here you can find the source of elapsedMillis(long startTime)

Description

elapsed Millis

License

Open Source License

Declaration

public static long elapsedMillis(long startTime) 

Method Source Code

//package com.java2s;

public class Main {
    public static long elapsedMillis(long startTime) {
        return (long) elapsedTime(startTime, System.nanoTime(), 1e6);
    }/*  ww  w. j  a v  a 2 s .c o  m*/

    private static double elapsedTime(long startTime, long endTime, double units) {
        return (endTime - startTime) / units;
    }
}

Related

  1. diffInMillis(long instantOne, long instantTwo)
  2. diffMillisec(String lhs, String rhs)
  3. diffTimeInMillis(long start, long end)
  4. durationInMillis(long startNano)
  5. elapsedMillis(long milliseconds)
  6. elapsedMillis(long t0nanos, long t1nanos)
  7. ensureSleepMillis(long millis)
  8. expensiveMethodTakingMillis(final int millis)
  9. filetimeToMillis(long filetime)