Hi,
I guess you don’t really mean the duration of a routine (since that is just determined by the duration of the components within it), but the duration of multiple presentations of a routine within a loop (i.e. where each presentation of a routine is much less than ten minutes, but you want to limit the total number of presentations)?
If so, see this:
and then you could have code that looks something like this:
if your_clock_name.getTime() >= 600:
continueRoutine = False
your_loop_name.finished = True
If that code is in the “each frame” tab of a code component, then it would end the routine and the loop at exactly ten minutes. If it is in the “begin routine” or “end routine” tabs, then it wouldn’t be as accurate (because the last routine might run past ten minutes), but the routine wouldn’t end part way through.