Android Second to Time getElapsedSeconds(long start, long end)

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

Description

get Elapsed Seconds

Declaration

public static double getElapsedSeconds(long start, long end) 

Method Source Code

//package com.java2s;
import java.math.BigDecimal;

public class Main {
    public static double getElapsedSeconds(long start, long end) {
        BigDecimal seconds = new BigDecimal(end - start)
                .divide(new BigDecimal(1000));
        return seconds.doubleValue();
    }/*from   w w  w .  jav  a  2  s  . c om*/
}

Related

  1. timeRemaining(double seconds)
  2. getDfferenceInMinute(long miliseconds)
  3. getTimeForm(long milliseconds)
  4. milliSecondsToTimer(long milliseconds)
  5. getTime(int minutes, int seconds)
  6. getSpeedString(float bytesPerMillisecond)
  7. getSeconds1()
  8. getSeconds2()