timer.pause

description

Pauses the timer.

syntax

getTimer(ELEMENT_NAME).pause()

example(s)


@newText("pleasewait", "Please wait 1s.")
@    .print()
@,
@newTimer("wait", 1000)
@    .start()
@,
@getTimer("wait")
$    .pause()
  • The code above adds the text Please wait 1s to the screen, starts a 1000ms timer and then pauses it.