Class SimpleTimebase

java.lang.Object
jmri.implementation.AbstractNamedBean
jmri.jmrit.simpleclock.SimpleTimebase
All Implemented Interfaces:
Comparable<NamedBean>, PropertyChangeProvider, NamedBean, Timebase

public class SimpleTimebase
extends AbstractNamedBean
implements Timebase
Provide basic Timebase implementation from system clock.

This implementation provides for the internal clock and for one hardware clock. A number of hooks and comments are provided below for implementing multiple hardware clocks should that ever be done.

The setTimeValue member is the fast time when the clock started. The startAtTime member is the wall-clock time when the clock was started. Together, those can be used to calculate the current fast time.

The pauseTime member is used to indicate that the Timebase was paused. If non-null, it indicates the current fast time when the clock was paused.