# Integration Toolkit Solutions Wiki

**URL:** <https://forum.inductiveautomation.com/t/integration-toolkit-solutions-wiki/105080>\
**Category:** 3rd Party Modules\
**Tags:** scripting, ignition81\
**Created:** [April 14, 2025, 9:02pm UTC](https://forum.inductiveautomation.com/t/integration-toolkit-solutions-wiki/105080 "2025-04-14T21:02:36Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 24, 2025, 12:44am UTC](https://forum.inductiveautomation.com/t/integration-toolkit-solutions-wiki/105080/13 "2025-04-24T00:44:43Z")

</div>

## timeMe() expression execution timer

_[I've reached the limit of two consecutive posts again so posting this here temporarily until someone else posts something and then I can post it seperately.]_

This function injects an MDC1 filter key into the logging system during expression execution, allowing a specific expression’s activity to be easily located in the logs.  
1 Mapped Diagnostic Context.

> **Expression**
>
> ```python
> timeMe(
> 'timeMeLog', // string to be returned with the MDC.
> forEach( // sample expression to be timed.
> asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
> asMap(
> 'Number', it(),
> 'Square', it() ^ 2
> )
> )
> )
> 
> ```

 ![timeMe log](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/b/bb63c2097c06bfc4fdc7ec97393cbc93128f1ffb.png)

_Results available in gateway web page → Status → Logs.  
Note the MDC string from the script._

> **Functions used**
>
> - [timeMe()](https://www.automation-pros.com/toolkit/doc/debugging.html#timeme).

---

_[View the full topic](https://forum.inductiveautomation.com/t/integration-toolkit-solutions-wiki/105080)._
