|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ch.aplu.util.BaseAlarmTimer
Abstract base class for HiResAlarmTimer and LoResAlarmTimer. See HiResAlarmTimer or LoResAlarmTimer for more details.
Method Summary | |
void |
addTimerListener(TimerListener timerListener)
Create a new thread with high priority for the AlarmTimer and start the timer. |
long |
getTime()
Return the current timer's value in microseconds (us). |
boolean |
isRunning()
Return true if the timer is running. |
void |
resume()
Restart the timer from its current value. |
void |
start()
Set the timer to the preset value and start it. |
void |
start(long alarmTime)
Set the timer to the give preset value and start it. |
void |
stop()
Stop the timer and store the current value. |
void |
stopEvents()
Force to stop the callback calls by terminating the timer's thread |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public long getTime()
public void start()
public void start(long alarmTime)
public void stop()
public void resume()
public boolean isRunning()
public void addTimerListener(TimerListener timerListener)
public void stopEvents()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |