up Inquisit Language Reference

resetTime function

Resets the time of a clock that is in timer or stopwatch mode.

Member of

<clock>

Syntax

clock.name.resetTime()

Return Type

none

Parameters

None.

Remarks

The resetTime function resets the time of a clock in timer or stopwatch mode. On the next trial, the displayed time will be the value of timeout on a timer or 0 on a stopwatch.

Examples

The following resets the time of a stopwatch:

<trial myTrial>
/ onTrialEnd= [clock.timespent.resetTime();]
</trial>

The following resets the time of a timer:

<trial myTrial>
/ onTrialEnd= [clock.timeremaining.resetTime();]
</trial>

Copyright Millisecond Software, LLC. All rights reserved.