Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using TIMEUSED macro

167 views
Skip to first unread message

Binyamin Dissen

unread,
Jan 7, 2010, 7:11:58 AM1/7/10
to
Assuming that I use TIMEUSED twice

TIMEUSED STORADR=STARTIME,ECT=YES
TIMEUSED STORADR=ENDTIME,ECT=YES

will

LG R15,ENDTIME
SLG R15,STARTIME
SRLG R14,R15,63-51 MICROSECONDS TO LOW BIT

do what I expect?

--
Binyamin Dissen <bdi...@dissensoftware.com>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to list...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Charles Mills

unread,
Jan 7, 2010, 2:18:43 PM1/7/10
to
That's kind of an open-ended question! Do you expect that it will tie your
shoes? <g>

Seriously, I am not as familiar with the "new" 64-bit instructions as I
might be but yes, I think you are on the right track. Shifting the TOD clock
right 12 bits definitely gives you microseconds.

Is there any particular part of the sequence that you are most in doubt
about?

If it were I I might use TIMEUSED CPU=MIC,... Then you can just use 32-bit
arithmetic and be good for CPU times up to 4000+ seconds. 1+ CPU-hours is a
lot of computing unless you are talking about a very long-running job or
task.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-...@bama.ua.edu] On Behalf
Of Binyamin Dissen
Sent: Thursday, January 07, 2010 4:11 AM
To: IBM-...@bama.ua.edu
Subject: Using TIMEUSED macro

Assuming that I use TIMEUSED twice

TIMEUSED STORADR=STARTIME,ECT=YES
TIMEUSED STORADR=ENDTIME,ECT=YES

will

LG R15,ENDTIME
SLG R15,STARTIME
SRLG R14,R15,63-51 MICROSECONDS TO LOW BIT

do what I expect?

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

J R

unread,
Jan 7, 2010, 2:27:14 PM1/7/10
to
> If it were I I might use TIMEUSED CPU=MIC,...

Then you have to worry about the availability of the Extract CPU Time instruction service
and also use LINKAGE=BRANCH which appears not to be documented.



> Date: Thu, 7 Jan 2010 11:17:55 -0800
> From: char...@MCN.ORG
> Subject: Re: Using TIMEUSED macro
> To: IBM-...@bama.ua.edu

_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/196390707/direct/01/

Charles Mills

unread,
Jan 7, 2010, 3:08:56 PM1/7/10
to
I use TIMEUSED STORADR=DWORD,CPU=MIC,LINKAGE=SYSTEM

That's cut-and-pasted straight out of working code. It has been running for
ten years or so with no instruction availability issues.

LINKAGE=BRANCH is documented in z/OS MVS Programming: Authorized Assembler
Services Reference, Volume 4 (SETFRR-WTOR):

,LINKAGE=SYSTEM
,LINKAGE=BRANCH Specifies the type of linkage used in TIMEUSED processing.
TIMEUSED
LINKAGE=BRANCH indicates branch entry. You may specify or default to
LINKAGE=BRANCH if you are a key zero supervisor state program running under
a TCB or SRB. LINKAGE=SYSTEM indicates the linkage is by nonbranch entry.

J R

unread,
Jan 7, 2010, 3:29:33 PM1/7/10
to
I stand corrected!

When I saw Binyamin's post I read about TIMEUSED in
z/OS MVS Programming: Assembler Services Reference, Volume 2 (IAR-XCT).

LINKAGE=BRANCH was mentioned under ECT=SYSTEM, but not otherwise documented.
It seemed to be the only way that you could request microseconds.

I didn't see any pointers to the "authorized" manual that you quoted, so I didn't go there.

Mea culpa!



> Date: Thu, 7 Jan 2010 12:08:09 -0800


> From: char...@MCN.ORG
> Subject: Re: Using TIMEUSED macro
> To: IBM-...@bama.ua.edu
>

> I use TIMEUSED STORADR=DWORD,CPU=MIC,LINKAGE=SYSTEM
>
> That's cut-and-pasted straight out of working code. It has been running for
> ten years or so with no instruction availability issues.
>
> LINKAGE=BRANCH is documented in z/OS MVS Programming: Authorized Assembler
> Services Reference, Volume 4 (SETFRR-WTOR):
>
> ,LINKAGE=SYSTEM
> ,LINKAGE=BRANCH Specifies the type of linkage used in TIMEUSED processing.
> TIMEUSED
> LINKAGE=BRANCH indicates branch entry. You may specify or default to
> LINKAGE=BRANCH if you are a key zero supervisor state program running under
> a TCB or SRB. LINKAGE=SYSTEM indicates the linkage is by nonbranch entry.
>
> Charles
>
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-...@bama.ua.edu] On Behalf
> Of J R
> Sent: Thursday, January 07, 2010 11:26 AM
> To: IBM-...@bama.ua.edu
> Subject: Re: Using TIMEUSED macro
>
> > If it were I I might use TIMEUSED CPU=MIC,...
>
>
>
> Then you have to worry about the availability of the Extract CPU Time
> instruction service
> and also use LINKAGE=BRANCH which appears not to be documented.

_________________________________________________________________
Hotmail: Trusted email with Microsoft�s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/196390706/direct/01/

0 new messages