Holger's
Java API

com.antelmann.calendar
Interface TimeSystem

All Known Implementing Classes:
AtomicClock, AtomicTime

public interface TimeSystem

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

Author:
Holger Antelmann

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.


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads