Pauser.SleepyWarningMIN_PROCESSORS, SLEEPY| Constructor and Description |
|---|
MilliPauser(long pauseTimeMS)
first it will busy wait, then it will yield, then sleep for a small amount of time, then
increases to a large amount of time.
|
| Modifier and Type | Method and Description |
|---|---|
long |
countPaused() |
MilliPauser |
minPauseTimeMS(long pauseTimeMS) |
void |
pause() |
long |
pauseTimeMS() |
MilliPauser |
pauseTimeMS(long pauseTimeMS) |
void |
reset() |
long |
timePaused() |
void |
unpause() |
public MilliPauser(long pauseTimeMS)
pauseTimeMS - the pause time for each loop.public MilliPauser pauseTimeMS(long pauseTimeMS)
public MilliPauser minPauseTimeMS(long pauseTimeMS)
public long pauseTimeMS()
public long timePaused()
timePaused in interface Pauserpublic long countPaused()
countPaused in interface PauserCopyright © 2019. All rights reserved.