Class: Clock

Clock()

The clock is an object whose state is a Tri, but with only two states, 1 and -1. The clock's state is updated by the tick() method, which is called at a regular interval by the system determined by the CLOCK_RATE constant. The clock is always initialized to -1.

Constructor

new Clock()

Properties:
Name Type Description
state Tri the state of the clock. Must be 1 or -1
Source:

Classes

Clock

Methods

start()

Start the cycling of the clock
Source:

tick()

Flip the clock's state
Source: