Millisecond Forums

How to add time limit?

https://forums.millisecond.com/Topic17462.aspx

By estarska - 10/24/2015

Hi, I would like to add a time limit to my procedure and add a clock/timer on the screen, so that participants can see how much time they have left. Is the possible with Inquisit 4?

By Dave - 10/24/2015

You can add a /timeout to your procedure's <block>(s) and you can display a time by setting up a <clock> element and displaying it via the <block>'s /bgstim attribute.
By estarska - 10/25/2015

Perfect, thank you! And do you know how I can display the timer also in a survey page? the /remainingtime property does not seem to be working...
By Dave - 10/25/2015

To display a <clock> element on a <surveypage>, you must present it via its /stimulusframes:

<clock myclock>
/ timeout = 5000
/ position = (75%, 10%)
</clock>

<textbox mytextbox>
/ caption = "Write something"
</textbox>

<surveypage mypage>
/ stimulusframes = [1=myclock]
/ timeout = 5000
/ questions = [1=mytextbox]
</surveypage>
By estarska - 10/25/2015

Worked perfectly! many thanks