I have been able to run the code component and have been able to get the total time used by the subjects in responding to my experiments, which is working perfectly. Unfortunately, the time they are displaying are not the standard clock time (example: Total time : 13.75), and it is difficult to convert it into the standard time.
The code that I have created is:
At the end of the experiment, I have opened an ‘EndScreen’ Routine, which has the Code Component named ‘Code’, and the codes are:
#At the begin experiment
expClock = core.Clock()
#At the begin routine
msg = “Total time : %.2f” %(expClock.getTime()/60.0)
And then in the Text box, I am calling
which is ‘set at every repeat.’
My problem is, is there a better, more efficient and visually feasible and appealing way of getting the total time at the end of the experiment?
Thanks in advance!