http://www.longpelaexpertise.com/toolsTOD.php
Bit 51 (of bits 0-63) is incremented every microsecond.
Trim the difference by 12 bits or divide by 4096.
Convert the remainder to decimal.
120CFE8C -> 120CF ->  0.073,935 seconds

On Mon, Jun 8, 2015 at 1:25 PM, Janet Graff
<0000004dc9e91b6d-dmarc-requ...@listserv.ua.edu> wrote:
> I need my product to report on the amount of clock time aprocedure took.  I 
> have captured the STCK before and after theprocedure.  The procedures take 
> very little time and I want to show theelapsed time to the end user.
>
>
>
> As two examples
>
>
>
> Start Time CF115F56BCCEB945
>
> End Time  CF115F57 1ED82BC3
>
> difference 000000006209727E
>
>
>
> Start Time CF115F58 19228AC5
>
> End Time   CF115F582B2F8951
>
> difference 00000000 120CFE8C
>
>
>
> I’d like to display this elapsed time in my job log as anice readable value 
> but I am unsure how this difference in STCK should beformatted.  Since it’s 
> the difference between two STCK a STCKCONV doesn’tseem appropriate anymore.
>
>
>
> I’d like to show this as “Your procedure took nn.nn.n.n microseconds”,or some 
> variation on this theme.
>
>
>
> Any suggestions?
>
>
>
> Janet
>
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



-- 
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to