Each frame, the following is called:
t = trialClock.getTime()
and t
is used for the start/stop times of stimuli, the difference you’re seeing is most likely because your clock is defined at the start of the experiment rather than the start of the routine. If you use trialClock
rather than time_fn
then it should line up.