java.lang.Object
swim.concurrent.Clock
swim.concurrent.StageClock
- All Implemented Interfaces:
Schedule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StageStageon which to execute timer functions.Fields inherited from class swim.concurrent.Clock
TICK_COUNT, TICK_MILLIS -
Constructor Summary
ConstructorsConstructorDescriptionStageClock(Stage stage) Constructs a newStageClockwith a timer resolution ofClock.TICK_MILLISmilliseconds, and a clock period ofClock.TICK_COUNTticks per revolution, that executes timer functions on the givenstage.StageClock(Stage stage, int tickMillis, int tickCount) Constructs a newStageClockwith a timer resolution oftickMillismilliseconds, and a clock period oftickCountticks per revolution, that executes timer functions on the givenstage.StageClock(Stage stage, ClockDef clockDef) Constructs a newStageClock, with the timer resolution and clock period specified by the givenclockDef, that executes timer functions on the givenstage. -
Method Summary
Methods inherited from class swim.concurrent.Clock
didFail, didStart, didStop, didTick, nanoTime, setTimer, sleep, start, stop, tick, timer, timerDidCancel, timerDidFail, timerDidRun, timerWillRun, timerWillSchedule, willStart, willStop
-
Field Details
-
stage
Stageon which to execute timer functions.
-
-
Constructor Details
-
StageClock
Constructs a newStageClockwith a timer resolution oftickMillismilliseconds, and a clock period oftickCountticks per revolution, that executes timer functions on the givenstage. -
StageClock
Constructs a newStageClock, with the timer resolution and clock period specified by the givenclockDef, that executes timer functions on the givenstage. -
StageClock
Constructs a newStageClockwith a timer resolution ofClock.TICK_MILLISmilliseconds, and a clock period ofClock.TICK_COUNTticks per revolution, that executes timer functions on the givenstage.
-
-
Method Details