I have a code which download file from URL.
I have a two parameters that calculated all time for downloading :
Long start = System.nanoTime();
// downloading...
Long end = System.nanoTime();
I need to measure estimated remaining time to end of downloading. How i can do that?