Java Time Elapsed elapsedTimeMs(long start)

Here you can find the source of elapsedTimeMs(long start)

Description

Get the elapsed time in millisecond between the specified start time and now.

License

Apache License

Parameter

Parameter Description
start the start time

Return

the elapsed milliseconds

Declaration

public static long elapsedTimeMs(long start) 

Method Source Code

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

public class Main {
    /**/*from  w  w w.  j av a  2s.  com*/
     * Get the elapsed time in millisecond between the specified start time and now.
     *
     * @param start the start time
     * @return the elapsed milliseconds
     */
    public static long elapsedTimeMs(long start) {
        return System.currentTimeMillis() - start;
    }
}

Related

  1. elapsedTime(long endTime, long beginTime)
  2. elapsedTime(long milli)
  3. elapsedTime(long ms)
  4. elapsedTime(long startTime, long endTime, double units)
  5. elapsedTime(long timeInMs)
  6. elapsedTimeStamp(long time)
  7. elapsedTimeStampSection(long n, String label, StringBuffer sb)
  8. elapsedTimeString(long time)