# "Timing Gates" code doesn't function

**URL:** <https://forum.makecode.com/t/timing-gates-code-doesnt-function/25585>\
**Category:** Arcade\
**Created:** [January 2, 2024, 11:26pm UTC](https://forum.makecode.com/t/timing-gates-code-doesnt-function/25585 "2024-01-02T23:26:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbenny](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@kbenny](https://forum.makecode.com/u/kbenny)\
**Post date:** [January 2, 2024, 11:26pm UTC](https://forum.makecode.com/t/timing-gates-code-doesnt-function/25585/1 "2024-01-02T23:26:01Z")

</div>

Hi,  
I copied the code 1/1 (changed only variable names), but time counting won’t work.  
Any idea why?  
Greets,  
Benny

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2cc2af0e9245913a8f45fe326602867fba8d9344.png)

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [January 2, 2024, 11:29pm UTC](https://forum.makecode.com/t/timing-gates-code-doesnt-function/25585/2 "2024-01-02T23:29:11Z")

</div>

I’m not seeing declarations for “Time Left” or “Time Right”… do those need to be created? Or maybe they’re part of an extension?

It would help if you could post a link to your code.

Thanks!

---

<div class="post-metadata">

**Author:** ![kbenny](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@kbenny](https://forum.makecode.com/u/kbenny)\
**Post date:** [January 3, 2024, 4:26pm UTC](https://forum.makecode.com/t/timing-gates-code-doesnt-function/25585/3 "2024-01-03T16:26:48Z")

</div>

Hi,  
many thanks for your attention. My mistake was that I did not use the “EventTimeStamp” function.  
This solved the issue.

---

<div class="post-metadata">

**Author:** ![robotosaurus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robotosaurus/32/19294_2.png) [@robotosaurus](https://forum.makecode.com/u/robotosaurus)\
**Post date:** [January 3, 2024, 8:37pm UTC](https://forum.makecode.com/t/timing-gates-code-doesnt-function/25585/4 "2024-01-03T20:37:50Z")

</div>

Silly you this the arcade section you want the micro:bit section.  
You will get much more help in the micro:bit section.
