Setup Fast Clock

JMRI provides two kinds of fast clock capability: This help page describes the overall structure. There are separate pages for LocoNet clocks and NCE clocks. As yet, we don't have interfaces for clocks in other DCC systems.

There are two different parts to consider: A "Timebase" provides the basic time information, while one or more displays show you what's going on.

To create a timebase, use the "Setup Fast Clock" item in the "Clocks" submenu under the "Tools" menu. This gives you a window where you can:

Once you have created a timebase by configuring it in that window, you can open clocks that will display on your screen. Currently, JMRI has three types available:

When a clock is running, JMRI creates an internal sensor and a memory variable that you can use to control and access the clock. The ISCLOCKRUNNING sensor controls whether the clock is running (ACTIVE) or stopped (INACTIVE). The IMCURRENTTIME memory contains the current fast-clock time, and can be easily accessed from Logix and scripts.

Happy timekeeping!