定时器#

介绍#

VEX 123 的主控模块内置计时器,用于记录项目开始以来经过的时间。它可用于测量持续时间或重置时间以进行新的计时操作。

以下是所有可用模块的列表:

重置计时器#

重置计时器 模块将计时器重置为零。

复位定时器堆栈块。#
重置计时器 :: custom-orientation

参数

描述

此代码块没有参数。

例子

aria-description 写在这里#
当开始 :: hat events
[Reset the timer when the sound button is pressed.]
永久循环
清除所有行
打印 (计时器秒数) ▶
如果 <[soundIcon v] 按下了?> 那么
重置计时器 :: custom-orientation

计时器(秒)#

秒表 模块返回自上次重置计时器以来经过的时间,以秒为单位的十进制数表示。

计时器(以秒为单位)报告块。#
(计时器秒数)

参数

描述

此代码块没有参数。

例子

aria-description 写在这里#
当开始 :: hat events
[Reset the timer when the sound button is pressed.]
永久循环
清除所有行
打印 (计时器秒数) ▶
如果 <[soundIcon v] 按下了?> 那么
重置计时器 :: custom-orientation