Timer element

Timer elements let you run timers and, if used with wait, pause the execution of the trial’s script for the specified duration.

Creation:

newTimer("myTimer", 1000)

Example:

[js try=”true”]newText(“pleasewait”, “Please wait 1s.”)
.print()
,
newTimer(“wait”, 1000)
.start()
.wait()
,
getText(“pleasewait”)
.remove()
[/js]

The code above adds the text Please wait 1s to the screen, starts a 1000ms timer and waits until it is done before removing the text.

Actions

[yadawiki-list category=”Action command,Timer element”]

Settings

[yadawiki-list category=”Settings command,Timer element”]

Tests

[yadawiki-list category=”Test command,Timer element”]