|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.foundation.timer.Clock
public class Clock
Object which calls the TickNoticer.noticeTick(int) method on a target
object every n milliseconds. Clocks can only be created by calling
the every() method on a Timer instance.
A Clock can be started and stopped.
TickNoticer| Method Summary | |
|---|---|
int |
getTicks()
Gets the current tick number. |
void |
start()
Starts this clock from the current tick. |
void |
stop()
Stops this clock from ticking. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getTicks()
TickNoticer) since it was created.
public void start()
public void stop()
start().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||