# Get the offset stim of a stimulus

**URL:** https://discourse.psychopy.org/t/get-the-offset-stim-of-a-stimulus/35257
**Category:** Builder
**Created:** [June 5, 2023, 4:53pm UTC](https://discourse.psychopy.org/t/get-the-offset-stim-of-a-stimulus/35257 "2023-06-05T16:53:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![simtib](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@simtib](https://discourse.psychopy.org/u/simtib)
#### Post date: [June 5, 2023, 4:53pm UTC](https://discourse.psychopy.org/t/get-the-offset-stim-of-a-stimulus/35257/1 "2023-06-05T16:53:05Z")

</div>

Hi - I am trying to build an experiment, where an image appears and then disappears when a specific hand posture is detected on the webcam (this part works quite well so far).

I would like to get the time the stimulus disappears.

If I add `thisExp.addData('routine_end_time', t)` to the end routine section of the code snippet is that going to work? My concern is thatt doing so I don’t have the exact same timing than with a keyboard stroke. In other words reaction time is slightly different between the keyboard and stim offset technic (30ms). Is it because of the refreshing rate?

Best,  
Simon
