ch.aplu.nxt
Class Tools

java.lang.Object
  extended by ch.aplu.nxt.Tools

public class Tools
extends java.lang.Object


Constructor Summary
Tools()
           
 
Method Summary
static void delay(long duration)
          Suspends execution of the current thread for the given amount of time.
static long getTime()
          Gets the timer's time.
protected static int round(double x)
           
static void startTimer()
          Starts a timer or restart it by setting its time to zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

startTimer

public static void startTimer()
Starts a timer or restart it by setting its time to zero.


getTime

public static long getTime()
Gets the timer's time.

Returns:
the current time of the timer (in ms)

delay

public static void delay(long duration)
Suspends execution of the current thread for the given amount of time. (Other threads may continue to run.)

Parameters:
duration - the duration (in ms)

round

protected static int round(double x)