# Measure Natural program response time in milli-seconds

**URL:** <https://techcommunity.softwareag.com/t/measure-natural-program-response-time-in-milli-seconds/98292>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics\
**Created:** [September 9, 2011, 8:19am UTC](https://techcommunity.softwareag.com/t/measure-natural-program-response-time-in-milli-seconds/98292 "2011-09-09T08:19:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Y](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/tony_y/32/121_2.png) [@Tony\_Y](https://techcommunity.softwareag.com/u/Tony_Y)\
**Post date:** [September 9, 2011, 8:19am UTC](https://techcommunity.softwareag.com/t/measure-natural-program-response-time-in-milli-seconds/98292/1 "2011-09-09T08:19:08Z")

</div>

Hi all,

I want to measure Natural execution time (inside program) down to milli-second. However, our existing timestamp format is (HH.II.SS.T). That is, I can only output to tenth of a second. Is it possible to capture to milli-second directly instead of writing an external C program to achieve it ?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 9, 2011, 10:18am UTC](https://techcommunity.softwareag.com/t/measure-natural-program-response-time-in-milli-seconds/98292/2 "2011-09-09T10:18:59Z")

</div>

\*TIMESTMP has the accuracy you need. Convert to a “usable” value with USR1023N or USR2036N.

Retrieval and conversion of this variable will cost you some CPU cycles, which may impact your results.

---

<div class="post-metadata">

**Author:** ![Tony\_Y](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/tony_y/32/121_2.png) [@Tony\_Y](https://techcommunity.softwareag.com/u/Tony_Y)\
**Post date:** [September 9, 2011, 2:48pm UTC](https://techcommunity.softwareag.com/t/measure-natural-program-response-time-in-milli-seconds/98292/3 "2011-09-09T14:48:12Z")

</div>

Thanks Ralph. That APIs suit my requirement.

Cheers.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:00pm UTC](https://techcommunity.softwareag.com/t/measure-natural-program-response-time-in-milli-seconds/98292/4 "2021-04-02T15:00:54Z")

</div>


