de.jaret.util.date.timemachine
Class TimeMachineSingleton
java.lang.Object
de.jaret.util.date.timemachine.TimeMachineSingleton
public class TimeMachineSingleton
- extends Object
Singleton to provide a time machine. The time machine will be setup to begin with the current time.
Do your setup early in your application setup if you want a special starting time or a real time provider.
- Version:
- $Id: TimeMachineSingleton.java 702 2007-12-30 11:54:55Z kliem $
- Author:
- kliem
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeMachineSingleton
public TimeMachineSingleton()
getTimeProvider
public static ITimeProvider getTimeProvider()
- Retrieve the time provider instance.
- Returns:
- time provider to be used
getTimeMachine
public static TimeMachine getTimeMachine()
- Retrieve the time machine for configuration etc.
- Returns:
- the time machien instance
Copyright © 2013. All Rights Reserved.