Clock: Difference between revisions
(Marked this version for translation) |
No edit summary |
||
Line 10: | Line 10: | ||
<!--T:2--> | <!--T:2--> | ||
== Usage== | == Usage== | ||
<p><code>clock</code> 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.</p> | <p id="tooltip"><code>clock</code> 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.</p> | ||
===Syntax=== <!--T:3--> | ===Syntax=== <!--T:3--> |
Revision as of 19:11, 28 July 2023
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.