|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lee.mugen.core.SystemTimer
public class SystemTimer
TODO : this class must be replace with LWJGL Timer and timer will be in GameWindow not in the logic. A wrapper class that provides timing methods. This class provides us with a central location where we can add our current timing implementation. Initially, we're going to rely on the GAGE timer. (@see http://java.dnsalias.com)
Constructor Summary | |
---|---|
SystemTimer()
|
Method Summary | |
---|---|
static long |
getTime()
Get the high resolution time in milliseconds |
static void |
sleep(long duration)
Sleep for a fixed number of milliseconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemTimer()
Method Detail |
---|
public static long getTime()
public static void sleep(long duration)
duration
- The amount of time in milliseconds to sleep for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |