@Test public void testProgressRemaining2() { final long start = System.currentTimeMillis(); Speedometer m = new Speedometer(start, true); assertEquals("500.0 KB (500,000 bytes) of 1.0 MB (50%, 500.0 KB/sec, 1 seconds remaining)", m.getProgress(start + 1000L, true, 1000000L, 1000000L / 2)); assertEquals("900.0 KB (900,000 bytes) of 1.0 MB (90%, 400.0 KB/sec, 1 seconds remaining)", m.getProgress(start + 2000L, true, 1000000L, 900000L)); }
public String getProgress(final boolean running, final long size, final long transferred) { return this.getProgress(System.currentTimeMillis(), running, size, transferred); }
Speedometer { public String getProgress(final boolean running, final long size, final long transferred) { return this.getProgress(System.currentTimeMillis(), running, size, transferred); } }
Speedometer { public String getProgress(final boolean running, final long size, final long transferred) { return this.getProgress(System.currentTimeMillis(), running, size, transferred); } Speedometer();  Speedometer(final long timestamp);  Speedometer(final long timestamp, final boolean decimal); }
Speedometer { public String getProgress(final boolean running, final long size, final long transferred) { return this.getProgress(System.currentTimeMillis(), running, size, transferred); } Speedometer();  Speedometer(final long timestamp);  Speedometer(final long timestamp, final boolean decimal); String getProgress(final boolean running, final long size, final long transferred); String getProgress(final long time, final boolean running, final long size, final long transferred); String getProgress(final boolean running, final long size, final long transferred, boolean plain, final Double speed); void reset(final Long timestamp, final Long transferred); }
Speedometer { public String getProgress(final boolean running, final long size, final long transferred) { return this.getProgress(System.currentTimeMillis(), running, size, transferred); } Speedometer();  Speedometer(final long timestamp);  Speedometer(final long timestamp, final boolean decimal); String getProgress(final boolean running, final long size, final long transferred); String getProgress(final long time, final boolean running, final long size, final long transferred); String getProgress(final boolean running, final long size, final long transferred, boolean plain, final Double speed); void reset(final Long timestamp, final Long transferred);  }