timer.start

description

Starts the timer.

syntax

getTimer(ELEMENT_NAME).start()

example(s)


@newText("pleasewait", "Please wait 1s.")
@    .print()
@,
@newTimer("wait", 1000)
$    .start()
@    .wait()
@,
@getText("pleasewait")
@    .remove()
  • The code above adds the text Please wait 1s to the screen, starts a 1000ms timer and wait until it is done before removing the text.