|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.render.util.Timer
public class Timer
A simple stopwatch-like timer.
| Method Summary | |
|---|---|
long |
getElapsedMilliseconds()
Get the number of milliseconds elapsed between now and when the timer was started. |
long |
getLapMilliseconds()
Get the number of milliseconds elapsed between now and when the timer lap-point was set. |
static Timer |
getTimer()
Get an instance of a new Timer object. |
Timer |
lap()
Set a lap-point. |
Timer |
reset()
Stop and reset the current timer to its initialized state. |
Timer |
start()
Start timer, or continue a stopped timer. |
Timer |
stop()
Stop this timer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Timer getTimer()
Timer object.
public Timer start()
throws IllegalStateException
IllegalStateException - if timer is not currently in a stopped state.public Timer stop()
IllegalStateException - if timer is already stopped.public Timer lap()
IllegalStateException - if the timer is not in a running state.public Timer reset()
public long getElapsedMilliseconds()
public long getLapMilliseconds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||