org.lee.mugen.core
Class SystemTimer

java.lang.Object
  extended by org.lee.mugen.core.SystemTimer

public class SystemTimer
extends java.lang.Object

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)

Author:
Kevin Glass

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

SystemTimer

public SystemTimer()
Method Detail

getTime

public static long getTime()
Get the high resolution time in milliseconds

Returns:
The high resolution time in milliseconds

sleep

public static void sleep(long duration)
Sleep for a fixed number of milliseconds.

Parameters:
duration - The amount of time in milliseconds to sleep for