Synchronization continuation task

OS (e.g. Win10):
PsychoPy version (1.84.2):

Hi all,

I am trying to code up a synchronization continuation task. Basically I want to present a flashing stimuli/sound and have the user press a key or mouse along with that stimuli. I want to be able to collect 1. the inter-tap-interval between successive clicks (precision) and then 2. the latency from the stimuli and the tap (accuracy).

I’ve used psychopy minimally before for stimuli but never for an experiment, so all help would be appreciated. Please let me know where to look for examples similar to this or that involve these components such as recording timestamps of successive button press in relation to stimuli.

Thank you.