de.lessvoid.nifty.spi.time.impl
Class AccurateTimeProvider

java.lang.Object
  extended by de.lessvoid.nifty.spi.time.impl.AccurateTimeProvider
All Implemented Interfaces:
TimeProvider
Direct Known Subclasses:
TimeProvider

public class AccurateTimeProvider
extends Object
implements TimeProvider

This time provider uses a Java native implementation to get the current time. This implementation is more accurate then FastTimeProvider, but on most systems slower.

Author:
Martin Karing <nitram@illarion.org>

Constructor Summary
AccurateTimeProvider()
           
 
Method Summary
 long getMsTime()
          Get the current time in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccurateTimeProvider

public AccurateTimeProvider()
Method Detail

getMsTime

public long getMsTime()
Get the current time in milliseconds.

Specified by:
getMsTime in interface TimeProvider
Returns:
the current time in milliseconds


Copyright © 2012. All Rights Reserved.