TICK_COUNT
The number of ticks handled before the current one: 0 on the first tick of the run.
declare const TICK_COUNT: number;Example
Section titled “Example”function onTick() { if (TICK_COUNT % 1000 === 0) { log("Ticks so far", TICK_COUNT); }}