public class PausableContinuousTimeline extends ContinuousTimeline
Timeline.Type
startTime
hasDeadline, paused
Constructor and Description |
---|
PausableContinuousTimeline(int totalSecs) |
Modifier and Type | Method and Description |
---|---|
double |
getElapsedMilliSeconds()
Gets the elapsed time in seconds.
|
double |
getElapsedSeconds()
Gets the elapsed time in seconds.
|
static void |
main(java.lang.String[] args) |
void |
pause()
Method used to pause the timeline.
|
void |
resume()
Method used to resume the timeline.
|
getCurrentTime, getTime, getTotalMiliseconds, getTotalSeconds, getTotalTime, printElapsedSeconds, printTime, reset
getType, isDeadlineReached, isPaused
public double getElapsedSeconds()
ContinuousTimeline.getTime()
for a more generic version.getElapsedSeconds
in class ContinuousTimeline
public double getElapsedMilliSeconds()
ContinuousTimeline.getTime()
for a more generic version.getElapsedMilliSeconds
in class ContinuousTimeline
public static void main(java.lang.String[] args)
public void pause()
Timeline