Re: Calculating duration from subtracting TOD clocks

2020-12-01 Thread Steff Gladstone
> > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Charles Mills > Sent: Thursday, November 26, 2020 1:16 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Calculating duration from subtracting TOD clo

Re: Calculating duration from subtracting TOD clocks

2020-11-27 Thread Paul Gilmartin
On Fri, 27 Nov 2020 08:55:35 -0500, Peter Relson wrote: > >That fits with my understanding that those bits to the right are to >ensure STCK uniqueness in a multi-CPU system, and STCK doesn't >guarantee uniqueness on any system -- two readings may be taken >between increments. > > >STCK values are

Re: Calculating duration from subtracting TOD clocks

2020-11-27 Thread Peter Relson
>And you are worried that you are factoring in 12 irrelevant bits that may add up over time. The 12 bits really are not irrelevant. >bits to the right of the rightmost bit that is incremented are stored as zeros True. But do you know which is the rightmost bit that is incremented? It is not

Re: Calculating duration from subtracting TOD clocks

2020-11-26 Thread Paul Gilmartin
On Thu, 26 Nov 2020 13:15:36 -0800, Charles Mills wrote: > >... And second, the PoOp says "For STORE CLOCK FAST, when the value of a >running clock is stored, bits to the right of the rightmost bit that is >incremented are stored as zeros." > That fits with my understanding that those bits to

Re: Calculating duration from subtracting TOD clocks

2020-11-26 Thread Charles Mills
: Thursday, November 26, 2020 1:16 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Calculating duration from subtracting TOD clocks @Steff, I totally "get" your question. You have some function that is called repeatedly and you want to know the total elapsed time spent in that function. S

Re: Calculating duration from subtracting TOD clocks

2020-11-26 Thread Charles Mills
Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Steff Gladstone Sent: Thursday, November 26, 2020 7:08 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Calculating duration from subtracting TOD clocks Could someone answer 4gb's 11-year-late question?

Re: Calculating duration from subtracting TOD clocks

2020-11-26 Thread Paul Gilmartin
On Thu, 26 Nov 2020 17:07:44 +0200, Steff Gladstone wrote: > >> On Monday, September 3, 2007 at 4:38:21 PM UTC-7, Ludmila Koganer wrote: >> > Hi, >> > I need to subtract two TOD times to find elapsed time. Currently I convert >> > the two TOD times with STCKCONV and determine the elaped time

Calculating duration from subtracting TOD clocks

2020-11-26 Thread Steff Gladstone
Could someone answer 4gb's 11-year-late question? On Tuesday, April 17, 2018 at 11:53:30 PM UTC+3, 4gb...@gmail.com wrote: > On Monday, September 3, 2007 at 4:38:21 PM UTC-7, Ludmila Koganer wrote: > > Hi, > > I need to subtract two TOD times to find elapsed time. Currently I convert > > the two