# Pause button during trial- timing issue when resuming

**URL:** <https://discourse.psychopy.org/t/pause-button-during-trial-timing-issue-when-resuming/32990>\
**Category:** Builder\
**Tags:** timing\
**Created:** [January 28, 2023, 9:01pm UTC](https://discourse.psychopy.org/t/pause-button-during-trial-timing-issue-when-resuming/32990 "2023-01-28T21:01:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hurricaneh](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hurricaneh](https://discourse.psychopy.org/u/hurricaneh)\
**Post date:** [January 28, 2023, 9:01pm UTC](https://discourse.psychopy.org/t/pause-button-during-trial-timing-issue-when-resuming/32990/1 "2023-01-28T21:01:11Z")

</div>

OS: Win10  
PsychoPy version: 2021.2.3

I am trying to add in a pause button into the trial so if the participant needs a break or something goes wrong, I can pause the trial and then pick up where we left off.

I got it to pause using [this forum](https://discourse.psychopy.org/t/pause-and-resume/1771/5), but when I hit the space button to resume, it doesn’t show the stimulus for the prescribed 4s. It speeds up through the following few stimuli presentations.

I made a dummy task to share with this problem. It just cycles through text from an excel file.

I think it’s a problem because of the psychopy clocks, but I am not sure how to fix it. Any and all help is appreciated!

[testingpause.psyexp](https://discourse.psychopy.org/uploads/short-url/zM4zmu22vzdeLmtFzxCRastmP6F.psyexp) (8.9 KB)  
[D1Trials.xlsx](https://discourse.psychopy.org/uploads/short-url/ueHDZqwo68YqpGrGoFMOGtOw7VR.xlsx) (8.8 KB)
