Re: COBOL Time of Day in micro-seconds or nano-seconds



don@xxxxxxxxxxx wrote:
All

Does anyone know of a "standard" or widely accepted way to get COBOL
time of day in micro-seconds or nano-seconds for use in generating
more accurate transaction time-stamp and for use in measuring
transaction turn-around time.

The current-date function only returns hundredth of a second.

Using mainframe assembler the micro-second clock counter can be
accessed but that's not standard COBOL and not portable across
platforms. In J2SE Java, there is the method System.nanotime() to get
the more accurate time of day in nano-secounds available from the host
system but that's not standard COBOL either.


On PCs, the best resolution is ghastly, I think it's 16 milliseconds. But
whatever, you're limited to the resolution of the CPU's timer.

Another tack is to get a start time, process 'n' transactions (where 'n' is
a large number), get an ending time then compute an average.





.



Relevant Pages

  • COBOL Time of Day in micro-seconds or nano-seconds
    ... Does anyone know of a "standard" or widely accepted way to get COBOL ... time of day in micro-seconds or nano-seconds for use in generating ... more accurate transaction time-stamp and for use in measuring ...
    (comp.lang.cobol)
  • Re: COBOL Time of Day in micro-seconds or nano-seconds
    ... Does anyone know of a "standard" or widely accepted way to get COBOL ... time of day in micro-seconds or nano-seconds for use in generating ... DISPLAY 'MICRO-SECONDS = ' MICRO-SECONDS. ...
    (comp.lang.cobol)
  • Re: COBOL Time of Day in micro-seconds or nano-seconds
    ... Does anyone know of a "standard" or widely accepted way to get COBOL ... time of day in micro-seconds or nano-seconds for use in generating ... more accurate transaction time-stamp and for use in measuring ...
    (comp.lang.cobol)
  • Re: Method to force keeping of source
    ... It appears to me that your wish is that the COBOL standard should prevent ... environment for the compiler or in the execution environment. ... > implementor defined is one of the problems as I look at the situation as ...
    (comp.lang.cobol)
  • Re: Program templates as Object Classes
    ... Here's the problem with OO COBOL - it is still very incomplete.. ... realized that OO was incomplete without support ... It's about two years ago a former, retired M/F Manager, (not Bill Klein ... Micro Focus above - but he was referring to the fact that Standard ...
    (comp.lang.cobol)