sdljava
Class SDLTimer

java.lang.Object
  extended by sdljava.SDLTimer

public class SDLTimer
extends java.lang.Object

Binding to the SDL Timer routines.

Version:
$Id: SDLTimer.java,v 1.1 2005/01/30 21:33:06 doc_alton Exp $
Author:
Bart Leboeuf (bartleboeuf@yahoo.fr)

Constructor Summary
SDLTimer()
           
 
Method Summary
static void delay(long ms)
          Wait a specified number of milliseconds before returning.
static long getTicks()
          Get the number of milliseconds since the SDL library initialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDLTimer

public SDLTimer()
Method Detail

delay

public static void delay(long ms)
                  throws java.lang.InterruptedException
Wait a specified number of milliseconds before returning.

Parameters:
ms - Wait a specified number of milliseconds before returning.
Throws:
java.lang.InterruptedException

getTicks

public static long getTicks()
Get the number of milliseconds since the SDL library initialization.

Returns:
long Get the number of milliseconds since the SDL library initialization.