|
jBNC Toolbox | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjbnc.util.Timer
public class Timer
Measures time intervals in milliseconds.
Field Summary | |
---|---|
protected long |
tStart
|
protected long |
tStop
|
Constructor Summary | |
---|---|
Timer()
Creates and start the timer. |
Method Summary | |
---|---|
long |
getTimeMillis()
Returns time elapsed in milliseconds |
void |
println(java.lang.String prefix)
Prints the current elapsed time to the standard output. |
void |
restart()
Starts the timer. |
void |
stop()
Stops the timer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long tStart
protected long tStop
Constructor Detail |
---|
public Timer()
Method Detail |
---|
public long getTimeMillis()
public void restart()
public void stop()
public void println(java.lang.String prefix)
prefix
- String printed in front of the time message.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |