public class Ticker extends Object
Modifier and Type | Field and Description |
---|---|
static long |
TICK_DURATION_NANOS |
Constructor and Description |
---|
Ticker() |
Modifier and Type | Method and Description |
---|---|
void |
addTask(int ticks,
int runCount,
Runnable runnable) |
void |
addTask(Task task) |
static Ticker |
getInstance() |
void |
removeTask(Task task) |
void |
startTicking() |
void |
stopTicking() |
public static final long TICK_DURATION_NANOS
Copyright © 2016. All rights reserved.