The remaining time in milliseconds until the timeout is reached.
<clock>
clock.name.remainingTime
Read Only
integer
The remainingTime property can be used with a clock in timer, stopwatch, or clock mode for which a timeout value has been set. If no timeout has been set for a clock, this property returns -1.
The following trial branches to a warning trial if the remaining time for a task is less than 5 seconds:
<trial myTrial>
/ branch = {if (clock.taskTimer.remainingTime < 5000) return trial.doWarning;}
</trial>
The following adds a warning tone to a trials stimuli if the remaining time is less than 3 seconds:
<trial myTrial>
/ onTrialBegin= {if (clock.taskTimer.remainingTime < 3000) trial.myTrial.insertStimulusFrame(1, sound.warning);}
</trial>
The following displays the value of remainingTime in a text stimulus:
<text myText>
/ items= ("remainingTime = <% clock.surveyTimer.remainingTime %>")
</text>
The following displays the value of remainingTime in an instruction page:
<page myPage>
remainingTime = <% clock.puzzleTimer.remainingTime %>
</page>