# Timer function on old Polyscope 1.8 Control

**URL:** <https://forum.universal-robots.com/t/timer-function-on-old-polyscope-1-8-control/38652>\
**Category:** Robot Communication\
**Created:** [February 19, 2025, 10:53am UTC](https://forum.universal-robots.com/t/timer-function-on-old-polyscope-1-8-control/38652 "2025-02-19T10:53:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arne.heine](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@arne.heine](https://forum.universal-robots.com/u/arne.heine)\
**Post date:** [February 19, 2025, 10:53am UTC](https://forum.universal-robots.com/t/timer-function-on-old-polyscope-1-8-control/38652/1 "2025-02-19T10:53:13Z")

</div>

Hi everyone,

I am pretty new to UR so maybe you guys have an easy fix for my problem, but I feel a bit like banging my head against the wall here.

So what I am trying to do here is basically to measure my cycle time and save this value into a variable.  
We have another UR20 with seemingly a newer control. Here it works like a charm but that is most likely due to the fact that that controller has a ‘Timer’ function.

Well the UR20 I am trying to get going now does not.  
Is there any way we can get this done without any crazy scripting? Because guess what? I suck at that 😃

Take care all

---

<div class="post-metadata">

**Author:** ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)\
**Post date:** [February 19, 2025, 11:49am UTC](https://forum.universal-robots.com/t/timer-function-on-old-polyscope-1-8-control/38652/2 "2025-02-19T11:49:37Z")

</div>

Make a thread with a 1 second Wait. After each Wait, increase a variable by the value of 1. 🙂

Then, at the start of your program, you reset the variable to 0. And then at the end of your program, you write the timer variable to another variable.

---

<div class="post-metadata">

**Author:** ![arne.heine](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@arne.heine](https://forum.universal-robots.com/u/arne.heine)\
**Post date:** [February 19, 2025, 12:09pm UTC](https://forum.universal-robots.com/t/timer-function-on-old-polyscope-1-8-control/38652/3 "2025-02-19T12:09:27Z")

</div>

ah okay that seems to work somehow.  
Now it would be pretty important for me to get the timer value together with decimals. is that possible aswell?

---

<div class="post-metadata">

**Author:** ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)\
**Post date:** [February 20, 2025, 8:18am UTC](https://forum.universal-robots.com/t/timer-function-on-old-polyscope-1-8-control/38652/4 "2025-02-20T08:18:40Z")

</div>

You can just make the Wait smaller. For example 0.1 seconds. 🙂

Then you must divide your second variable by 10 to get your time with 1 decimal.

---

<div class="post-metadata">

**Author:** ![arne.heine](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@arne.heine](https://forum.universal-robots.com/u/arne.heine)\
**Post date:** [February 20, 2025, 8:30am UTC](https://forum.universal-robots.com/t/timer-function-on-old-polyscope-1-8-control/38652/5 "2025-02-20T08:30:36Z")

</div>

yes okay thank you I got it done late yesterday but seems to be working fine now. slightly disappointing that the control cannot show decimals in the variables but that is something i can work with.  
Thanks a lot I will mark this topic as done 🙂
