Android Long to Date Convert getElapsed(long start, long end)

Here you can find the source of getElapsed(long start, long end)

Description

get Elapsed

Declaration

private static double getElapsed(long start, long end) 

Method Source Code

//package com.java2s;

import java.math.BigDecimal;

public class Main {
    private static double getElapsed(long start, long end) {
        BigDecimal d = new BigDecimal(end - start).divide(new BigDecimal(
                1000));//from w w w . j a  v a 2  s .  com
        return d.doubleValue();
    }
}

Related

  1. formatSecondsToHHMM(long seconds)
  2. getStringByFormat(long milliseconds, String format)
  3. getStringByFormat(long milliseconds, String format)
  4. convertToTime(long time)
  5. formatDateTime(long timeToFormatInMilliseconds)