de.lessvoid.nifty.spi.time.impl
Class AccurateTimeProvider
java.lang.Object
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>
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 |
AccurateTimeProvider
public AccurateTimeProvider()
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.