com.programix.time
Interface DateTools.TimeSource
- All Known Implementing Classes:
- DateTools.AcceleratedTimeSource, DateTools.OffsetTimeSource
- Enclosing class:
- DateTools
public static interface DateTools.TimeSource
Used to specify the source to use for milliseconds since Jan 1, 1970.
Some implementations may choose to not use
System.currentTimeMillis() as the source! For an implementation
of this that simply calls System.currentTimeMillis(), see
DateTools.DEFAULT_TIME_SOURCE.
- Author:
- Paul Hyde
|
Method Summary |
long |
getTime()
Returns the number of milliseconds since 1970-01-01. |
getTime
long getTime()
- Returns the number of milliseconds since 1970-01-01.
Some implementations may choose to not use
System.currentTimeMillis() as the source! This flexibility
allows a VM-wide offset or time acceleration to be implemented.
Keep in mind that if time is accelerated,
wait(long msTimeout) and
Thread.sleep(long msDuration)
times requested throughout the VM will likely last too long.
Copyright © 2001-2009
Programix Incorporated.
All rights reserved.
ProgramixGenericLib is free
and is
OSI Certified
Open Source Software under the BSD
license.