de.lessvoid.nifty.spi.time.impl
Class FastTimeProvider
java.lang.Object
de.lessvoid.nifty.spi.time.impl.FastTimeProvider
- All Implemented Interfaces:
- TimeProvider
public class FastTimeProvider
- extends Object
- implements TimeProvider
This time provider uses a Java native implementation to get the current time.
This implementation is faster then
AccurateTimeProvider
, but less
accurate.
- 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 |
FastTimeProvider
public FastTimeProvider()
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.