Don Higgins
[email protected]
www.don-higgins.net 

-----Original Message-----
From: [email protected] <[email protected]> 
Sent: Sunday, September 22, 2019 7:03 AM
To: 'IBM Mainframe Assembler List' <[email protected]>
Subject: RE: ASSEMBLER-LIST Digest - 20 Sep 2019 to 21 Sep 2019 (#2019-103)

Brian

I don't remember the TIMEUSED macro.  I do remember when calculating elapsed 
time from time of day double words that the original values where in 
microseconds and required SRDL reg,12 to get to 100th or a second.  So I'd 
start by checking the macro to see what units are returned.

Don Higgins
[email protected]
www.don-higgins.net 

-----Original Message-----
From: IBM Mainframe Assembler List <[email protected]> On Behalf 
Of ASSEMBLER-LIST automatic digest system
Sent: Sunday, September 22, 2019 12:00 AM
To: [email protected]
Subject: ASSEMBLER-LIST Digest - 20 Sep 2019 to 21 Sep 2019 (#2019-103)

There are 10 messages totaling 573 lines in this issue.

Topics of the day:

  1. Converting TIMEUSED macro output to printable time used (10)

----------------------------------------------------------------------

Date:    Sat, 21 Sep 2019 06:26:16 -0400
From:    Brian Westerman <[email protected]>
Subject: Converting TIMEUSED macro output to printable time used

I know I'm doing something wrong, but I can't get the output from TIMEUSED to 
give me a valid time used

In the program I have

   TIMEUSED STORADR=DBLWD1
   LM R0,R1,DBLWD1
   SRDL R0,12
   D       R0,K10000
   CVD   R1,DBLWD2
   STRING (DBLWD2+4,P,L),INTO=CPUTIME


K10000   DC    F'10000'   

What I end up with in CPUTIME is (in this case) 324 for a job that ran all of 3 
seconds (wall clock time) when my job stats show:
CPU:     0 HR  01 MIN  05.27 SEC    SRB:     0 HR  00 MIN  06.53 SEC

I should be  getting something like 65 (unless SRB is included when I would 
expect 71)

I am obviously doing something wrong.  I tried it using load grande and got the 
same results, so I went back to LM.

any help at all would be appreciated.

Brian

**************************************

Reply via email to