psychopy

How to create a counter/stopwatch in Psychopy


I am learning how to create Psychology experiments using Psychopy or OpenSesame. Currently, I am trying to create a Psychomotor Vigilance Task where a counter/stopwatch will appear and the participants have to press a button to stop it. How do I create this counter/stopwatch?

Please point me in the general direction and try not to provide me with the answers since I want to try to figure it out myself. Thanks!


Solution

  • You could provide an image to represent the clock face and another to represent the hand and then change the orientation of the hand (using set every frame) according to time (ori set to $t*6 would rotate 360deg every 60s). Tips: