public class VisualizationClock
extends java.lang.Object
Constructor and Description |
---|
VisualizationClock()
Constructs a new ViaualizationClock with speed rate of 1.
|
Modifier and Type | Method and Description |
---|---|
double |
getRate()
Gets the current speed rate.
|
long |
getTime()
Returns the time value.
|
void |
setRate(double rate)
Sets the speed rate, which influence the clock speed with:
clock speed = system clock speed * speed rate
|
public VisualizationClock()
public long getTime()
public void setRate(double rate)
rate
- The speed rate.public double getRate()