Easiest way to measure that 2 min has passed

Hi all,

I’m putting together an experiment that presents a thought probe roughly every 2 minutes (with some pseudo randomization). Since the trial length is variable I really have to measure the actual time.

What’s the easiest way to do this in builder?

Many thanks for any ideas,
Amir

Ok, got a solution:

time_since_last_tp = globalClock.getTime() - time_of_last_tp

if time_since_last_tp > 120:
    stuff_happens()

time_of_last_tp = globalClock.getTime()

Hello @orig_amir , sorry for the question after so long. But I would like to know how you did the pseudo randomization?

I want to add probes to a task that are presented randomly without repeating twice.
It would be something like this:
A+B+C+TP

But no:

A+B+TP+TP
(TP= probes)

Could you help me, please?