Clock

From StarLogo Nova Wiki
Revision as of 20:40, 27 June 2023 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:


Clock

clock is a code block part of the Environment drawer.

Usage

clock refers to the value of the clock, measured in “ticks”. This value increments by 1 after each iteration of the code. The speed that the clock increments is determined by the value of the engine speed slider. A slider value of n makes the clock tick n times per second. The clock starts at zero when the program is initiated.

Syntax

[Textbox Insert] clock

Common Uses

Mainly used to simulate the passing of time in simulations, and to prompt certain actions to take place during certain points in time.

Nuances

Related Blocks