java.lang.Object
swim.concurrent.Clock
swim.concurrent.StageClock
- All Implemented Interfaces:
Schedule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stage
Stage
on which to execute timer functions.Fields inherited from class swim.concurrent.Clock
TICK_COUNT, TICK_MILLIS
-
Constructor Summary
ConstructorsConstructorDescriptionStageClock
(Stage stage) Constructs a newStageClock
with a timer resolution ofClock.TICK_MILLIS
milliseconds, and a clock period ofClock.TICK_COUNT
ticks per revolution, that executes timer functions on the givenstage
.StageClock
(Stage stage, int tickMillis, int tickCount) Constructs a newStageClock
with a timer resolution oftickMillis
milliseconds, and a clock period oftickCount
ticks 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
Stage
on which to execute timer functions.
-
-
Constructor Details
-
StageClock
Constructs a newStageClock
with a timer resolution oftickMillis
milliseconds, and a clock period oftickCount
ticks 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 newStageClock
with a timer resolution ofClock.TICK_MILLIS
milliseconds, and a clock period ofClock.TICK_COUNT
ticks per revolution, that executes timer functions on the givenstage
.
-
-
Method Details