Re: Nanosecond resolution timestamps for HLL's?

2024-02-19 Thread Peter Farley
> As for implementing a heap, you say you don't care if it's a timestamp. > Since heaps require single thread or a locking mechanism when > elements are added / removed, why not just have a counter associated > with the heap. Each time you add an element, you increment (or > decrement) the

Re: Nanosecond resolution timestamps for HLL's?

2024-02-18 Thread Peter Farley
> Have you looked at the FORMATTED-TIME function? Thanks Paul, I did look at the FORMATTED-TIME function, but the finest resolution offered by that function is tenths of milliseconds (four fractional decimal digits), not even micro-seconds (which would require six fractional decimal digits).

Re: Nanosecond resolution timestamps for HLL's?

2024-02-18 Thread Peter Farley
>What guarantees uniqueness other than STCT(E)? Does the Sysplex Timer/ETR >guarantee >uniqueness across the plex? > >And monotonicity is a harsher constraint. In the Bad Old Days when each CPU >had its own >TOD and uniqueness was achieved by putting the CPU ID in the TOD programmable >field

Nanosecond resolution timestamps for HLL's?

2024-02-18 Thread Peter Farley
I have been reviewing all the documentation I can find to provide nano-second resolution timestamps from a calling HLL batch program. STCK and STCKE instructions of course provide this (and more) resolution, but using them from any HLL besides C/C++ requires an assembler subroutine (however

Ent. COBOL User-defined function question

2024-02-01 Thread Peter Farley
Using the listserv web interface for the first time, so I hope this goes through OK. In testing the new V6.4 user-defined functions capability I have found that it seems you cannot have a separately-compiled-and-linked user-defined function. If you separately compile and link the function for