|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectserver.testmodules.TestModule.Timer
protected class TestModule.Timer
The internal class that times the time a message takes to go from the server to the client and back.
Constructor Summary | |
---|---|
TestModule.Timer(long send)
Creates a Timer object with a send timestamp. |
Method Summary | |
---|---|
long |
calculateTime()
Calculates the time the message took from the server to the client and back. |
void |
setReceive(long receive)
Sets the receival time of the message. |
java.lang.String |
toString()
Convert the send and receival timestamps to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestModule.Timer(long send)
Timer
object with a send timestamp.
send
- The timestamp of which the message was sent.Method Detail |
---|
public void setReceive(long receive)
receive
- The timestamp of which the message was received.public long calculateTime()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |