public class HiResAlarmTimer extends BaseAlarmTimer
Constructor and Description |
---|
HiResAlarmTimer(long alarmTime)
Construct a alarm timer instance with better
than 1 microsecond resolution on most systems
and set its preset time in microseconds (us).
|
HiResAlarmTimer(long alarmTime,
boolean autostart)
Same as HiResAlarmTimer(alarmTime), but the timer starts immediately if
autostart is true.
|
HiResAlarmTimer(long alarmTime,
boolean autostart,
boolean yield)
Same as HiResAlarmTimer(alarmTime, autostart), but most methods calls
Thread.yield() automatically, if yield is true.
|
addTimerListener, getTime, isRunning, resume, start, start, stop, stopEvents
public HiResAlarmTimer(long alarmTime)
public HiResAlarmTimer(long alarmTime, boolean autostart)
public HiResAlarmTimer(long alarmTime, boolean autostart, boolean yield)