public class TimeServiceFactory extends Object
TimeService
Constructor and Description |
---|
TimeServiceFactory() |
Modifier and Type | Method and Description |
---|---|
static TimeService |
getControllableTimeService()
Return
ControllableTimeService instance initialized with the current system time |
static TimeService |
getControllableTimeService(long initTargetTimeMsec)
Return
ControllableTimeService instance initialized with the time specified in initTargetTimeMsec |
static TimeService |
getWallClockTimeService()
Return
WallClockTimeService instance. |
public static TimeService getWallClockTimeService()
WallClockTimeService
instance. This class uses the system clock internallypublic static TimeService getControllableTimeService()
ControllableTimeService
instance initialized with the current system timepublic static TimeService getControllableTimeService(long initTargetTimeMsec)
ControllableTimeService
instance initialized with the time specified in initTargetTimeMsecinitTargetTimeMsec
- Initial time of the TimeService in milliseconds