Will add a line to the results file each time the timer starts and each time it ends.
[js try=”true” highlight=”5″]
newText(“pleasewait”, “Please wait 1s.”)
newButton(“continue”, “Now click here to continue.”)
Adds the text Please wait 1s to the screen, starts a 1000ms timer and wait until it is done before adding a button to the page. Two lines will be added to the results file, reporting the timestamps at the start and at the end of running the timer (should be spaced apart by about 1000ms).