I have a code that download file from URL.
I have two parameters that are calculated all time for downloading :
Long start = System.nanoTime();
// downloading...
Long end = System.nanoTime();
I need to measure the estimated remaining time to the end of downloading. How I can do that?
This question (Can Java be used to determine a duration of a download?) didn't actually cover what I'm asking - I wanna know the remaining time, not the duration of downloading.