Timer#
Introduction#
The VEX 123’s Brain has a timer that keeps track of elapsed time from the start of a project. It can be used to measure durations or reset for new timing operations.
Below is a list of all available blocks:
reset timer – Resets the timer to zero.
timer in seconds – Returns the current elapsed time in seconds.
reset timer#
The reset timer block resets the timer to zero.
The reset timer stack block.#
reset timer :: custom-orientation
Parameters |
Description |
|---|---|
This block has no parameters. |
Example
aria-description goes here#
when started :: hat events
[Reset the timer when the sound button is pressed.]
forever
clear all rows
print (timer in seconds) ▶
if <[soundIcon v] pressed?> then
reset timer :: custom-orientation
timer in seconds#
The timer in seconds block returns the elapsed time since the timer was last reset, as a decimal in seconds.
The timer in seconds reporter block.#
(timer in seconds)
Parameters |
Description |
|---|---|
This block has no parameters. |
Example
aria-description goes here#
when started :: hat events
[Reset the timer when the sound button is pressed.]
forever
clear all rows
print (timer in seconds) ▶
if <[soundIcon v] pressed?> then
reset timer :: custom-orientation