Shift the value right 12 bits and you will have microseconds. (do it algebraically if you want to round up)
Convert to character and display. Job done! === > Date: Mon, 8 Jun 2015 18:25:21 +0000 > From: 0000004dc9e91b6d-dmarc-requ...@listserv.ua.edu > Subject: STCK question > To: IBM-MAIN@LISTSERV.UA.EDU > > 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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN