# Getting the device by its id takes a long time

**URL:** <https://community.homey.app/t/getting-the-device-by-its-id-takes-a-long-time/65621>\
**Category:** Developers\
**Created:** [July 6, 2022, 6:06pm UTC](https://community.homey.app/t/getting-the-device-by-its-id-takes-a-long-time/65621 "2022-07-06T18:06:28Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 14, 2022, 2:23pm UTC](https://community.homey.app/t/getting-the-device-by-its-id-takes-a-long-time/65621/25 "2022-07-14T14:23:32Z")

</div>

Hi @Joka  
I just thought of the fact the [Papertrails](https://community.homey.app/t/app-pro-papertrails-log-advanced-logging-and-log-management-v0-6-3/40) app, can log time in ms;  
so no stopwatch or timestamp-script-cards are needed for measuring flowcards or scripts 🙃

 ![Screenshot from 2022-07-14 16-27-36](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/0/20002de209c2b5ea5e41f5d9ae886d2b84988ead.png)

.  
log:

```auto
2022-07-14 16:04.43.430 TurnLightOn start (script-monitor)
2022-07-14 16:04.43.937 TurnLightOn_FilterDevices - runtime (script-monitor )
2022-07-14 16:04.45.053 TurnLightOn_LoopOverDevices - runtime (script-monitor )

```

---

_[View the full topic](https://community.homey.app/t/getting-the-device-by-its-id-takes-a-long-time/65621)._
