getTimer(id).settings.log()
Will add a line to the results file each time the timer starts and each time it ends.
Example:
[js try=”true” highlight=”5″]
newText(“pleasewait”, “Please wait 1s.”)
.print()
,
newTimer(“wait”, 1000)
.settings.log()
.start()
.wait()
,
newButton(“continue”, “Now click here to continue.”)
.print()
.wait()
[/js]
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).