public class PingReference
extends java.lang.Object
| Constructor and Description |
|---|
PingReference() |
| Modifier and Type | Method and Description |
|---|---|
long |
get()
Get the ping.
|
void |
start()
Start the ping calculation.
|
long |
startAndGet()
Start the ping calculation and return the start time.
|
void |
stop()
Stop the ping calculation.
|
public void start()
java.lang.IllegalStateException - If the ping has already startedpublic long startAndGet()
java.lang.IllegalStateException - If the ping has already startedpublic void stop()
java.lang.IllegalStateException - If the ping has already stoppedpublic long get()
java.lang.IllegalStateException - If the ping has not finished