org.jdesktop.wonderland.server
Class TimeManager

java.lang.Object
  extended by org.jdesktop.wonderland.server.TimeManager

public class TimeManager
extends java.lang.Object

Provide course grain time for the server. The courseness is dependent on how well the individual OS times of the server are synchronized (using ntp). The getTimeDrift method must return the maximum difference between the times on the server machines.

Author:
paulby

Constructor Summary
TimeManager()
           
 
Method Summary
static long getTimeDrift()
          Return the maximum difference between time on multiple servers
static long getWonderlandTime()
          Return wonderland time in ms.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeManager

public TimeManager()
Method Detail

getWonderlandTime

public static long getWonderlandTime()
Return wonderland time in ms. This call may/will return slightly different times on accross a DS multinode deployment. The time difference between servers is less than the value returned by getTimeDrift.

Returns:

getTimeDrift

public static long getTimeDrift()
Return the maximum difference between time on multiple servers

Returns:


Open Wonderland - http://openwonderland.org