public class SleepHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
MILLI_TO_NANO
The number of nanoseconds in a millisecond.
|
Constructor and Description |
---|
SleepHelper() |
Modifier and Type | Method and Description |
---|---|
long |
calculateSleep(long currentTimestamp) |
void |
reset() |
void |
sleep(long currentTimestamp) |