# Creating a clock for time based prospective memory task

**URL:** <https://discourse.psychopy.org/t/creating-a-clock-for-time-based-prospective-memory-task/27694>\
**Category:** Builder\
**Tags:** timing\
**Created:** [February 27, 2022, 11:59pm UTC](https://discourse.psychopy.org/t/creating-a-clock-for-time-based-prospective-memory-task/27694 "2022-02-27T23:59:55Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![JensBoelte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jensboelte/32/9060_2.png) [@JensBoelte](https://discourse.psychopy.org/u/JensBoelte)\
**Post date:** [March 2, 2022, 8:46am UTC](https://discourse.psychopy.org/t/creating-a-clock-for-time-based-prospective-memory-task/27694/9 "2022-03-02T08:46:40Z")

</div>

Hello,

does this help?

> [@Cannot get opacity to update](https://discourse.psychopy.org/t/cannot-get-opacity-to-update/26121):
>
> For the life of me I cannot get the opacity to update. I have tried using a variable in the opacity box, then updating it in the code. I’ve tried using an interval loop in the Begin Routine and setting the update to set every repeat. I’m just not getting any results. I have this in the Begin Routine: timer = new util.Clock(); Each Frame: if (timer.getTime()\>2 && timer.getTime()\<10) //After 2 seconds, set opacity to 0 { poly…

Best wishes Jens

---

_[View the full topic](https://discourse.psychopy.org/t/creating-a-clock-for-time-based-prospective-memory-task/27694)._
