Getting reaction time during a canvas.show()
So I am confused about how to record the time it takes for a mouse click when a canvas appear on the screen.
The thing I want to do is as follow:
- I present a canvas;
- I wait for a mouseclick to make it disappear.
So here is the code I used for now:
<br />t = my_canvas_Practice_Sym.show() my_mouse = Mouse(visible=False) button, position, timestamp = my_mouse.get_click() while True: if button is not None: break var.reaction_time_canvas = timestamp - t
There are two things I am wonder here:
- could you confirm that timestamp corresponds to the time of the mouseclick and not the time when the mouse is initiated?
- I wonder if my approach is the best here for timing accuracy. First I draw the canvas and second I initiate the mouse. Could you confirm the time it takes to the mouse to initiate is so small it doesnt matter?