public class BandwidthTestResults
extends java.lang.Object
| Constructor and Description |
|---|
BandwidthTestResults() |
| Modifier and Type | Method and Description |
|---|---|
long |
getElapsed()
Returns the number of milliseconds elapsed between start() and stop().
|
double |
getKbps()
Returns the bandwidth used in kbits/s beetween start() and stop().
|
long |
getTotal()
Returns the number of bytes sent between start() and stop().
|
void |
start()
Starts the bandwidth measurement.
|
void |
stop()
Ends the bandwidth measurement.
|
void |
transmitted(int n)
Called when a bunch of data has been transmitted.
|
public void start()
public void transmitted(int n)
n - Number of bytes that have been transmitted.public void stop()
public double getKbps()
public long getElapsed()
public long getTotal()