Link Search Menu Expand Document

timer.resume

description

Resumes the timer.

syntax

getTimer(ELEMENT_NAME).resume()

example(s)


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