# \*CPU-TIME variable

**URL:** <https://techcommunity.softwareag.com/t/cpu-time-variable/93984>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [June 28, 2010, 11:39am UTC](https://techcommunity.softwareag.com/t/cpu-time-variable/93984 "2010-06-28T11:39:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ats](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@Ats](https://techcommunity.softwareag.com/u/Ats)\
**Post date:** [June 28, 2010, 11:39am UTC](https://techcommunity.softwareag.com/t/cpu-time-variable/93984/1 "2010-06-28T11:39:54Z")

</div>

Would like to understand why \*CPU-TIME always contains the value zero for CICS TP monitor (some others as well) system on Mainframe computers?

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [June 28, 2010, 10:36pm UTC](https://techcommunity.softwareag.com/t/cpu-time-variable/93984/2 "2010-06-28T22:36:50Z")

</div>

Not sure, but I am guessing the difference under a TP monitor has to do with the fact that individual sessions are not charged CPU time by the system - just the TP monitor itself - and the accounting of this is not allocated to each user’s session. This is unlike batch where your Natural session is running in its own address space.

The Natural documentation confirms that Natural under VSE/ESA, CICS, IMS/TM, UTM and versions of Complete under 6.3 will show \*CPU-TIME=0 always.

You do have an alternative measuring elapsed time would substitute:

LBL1. SETTIME  
(bunch of code in Natural)  
…  
…  
…  
WRITE ‘TIME ELAPSED:’ \*TIMD (LBL1.)

---

<div class="post-metadata">

**Author:** ![Rainer\_Koch](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@Rainer\_Koch](https://techcommunity.softwareag.com/u/Rainer_Koch)\
**Post date:** [June 29, 2010, 10:55am UTC](https://techcommunity.softwareag.com/t/cpu-time-variable/93984/3 "2010-06-29T10:55:08Z")

</div>

\*CPU-TIME is zero for those (TP monitor) systems that do not provide the possibility for individual CPU time accounting, e.g. CICS.

---

<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, 2:58pm UTC](https://techcommunity.softwareag.com/t/cpu-time-variable/93984/4 "2021-04-02T14:58:42Z")

</div>


