Ahh, OK. The value of t
restarts at zero on each each routine, so you need to calculate a time that crosses the boundary of routines. Builder maintains a clock called globalClock
that you can use, which keeps counting throughout the experiment. You need to get the value of that clock at the start of the first trial and then check against that later:
Begin routine tab:
if trials.thisN == 0: # only on the first trial
startTime = globalClock.getTime()
Each frame tab:
if globalClock.getTime() - startTime >= 360:
trials.finished = True
continueRoutine = False