public class IntervalTimer
extends java.lang.Object
elapsedMsec()
to determine elapsed time.Constructor and Description |
---|
IntervalTimer()
Records the current time so that elapsed time can later be determined.
|
Modifier and Type | Method and Description |
---|---|
long |
elapsedMsec()
Time elapsed in msec since IntervalTimer created or resetTimer() called
|
java.lang.String |
elapsedMsecStr()
For outputting elapsed time in milliseconds with 3 digits after the
decimal point, as in 123.456 msec.
|
long |
elapsedNanoSec()
Time elapsed in nanoseconds since IntervalTimer created or resetTimer() called
|
void |
resetTimer()
Resets the timer to the current time.
|
java.lang.String |
toString()
toString() is defined so that it works well when debug logging.
|
public IntervalTimer()
public void resetTimer()
public long elapsedMsec()
public long elapsedNanoSec()
public java.lang.String elapsedMsecStr()
public java.lang.String toString()
toString
in class java.lang.Object