org.jscience.util
Interface TimeSystem


public interface TimeSystem

TimeSystem allows to use a time measurement that is independent from the system time.


Field Summary
static TimeSystem systemTime
          provides a TimeSystem implementation based on the system time.
 
Method Summary
 long currentTimeMillis()
          returns the current time in milliseconds as measured by the underlying time system which may be different from the system time.
 

Field Detail

systemTime

static final TimeSystem systemTime
provides a TimeSystem implementation based on the system time.

See Also:
System.currentTimeMillis()
Method Detail

currentTimeMillis

long currentTimeMillis()
returns the current time in milliseconds as measured by the underlying time system which may be different from the system time.

Returns:
the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.