|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.misc.SystemTime
public class SystemTime
Implementation of Time
interface based on System.currentTimeMillis
.
Performs smoothing internally to avoid effects of poor granularity
of currentTimeMillis on Windows platform in particular.
Constructor Summary | |
---|---|
SystemTime()
|
Method Summary | |
---|---|
double |
deltaT()
Time in seconds since last update. |
int |
getNumSmoothingSamples()
Returns number of smoothing samples; default is 10. |
void |
rebase()
Rebases this timer. |
void |
setNumSmoothingSamples(int num)
Sets number of smoothing samples. |
double |
time()
Time in seconds since beginning of application. |
void |
update()
Updates this Time object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemTime()
Method Detail |
---|
public void setNumSmoothingSamples(int num)
public int getNumSmoothingSamples()
public void rebase()
public void update()
Time
update
in interface Time
public double time()
Time
time
in interface Time
public double deltaT()
Time
deltaT
in interface Time
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |