Re: COBOL Time of Day in micro-seconds or nano-seconds
- From: "HeyBub" <heybub@xxxxxxxxxxxxxxx>
- Date: Fri, 30 May 2008 09:03:32 -0500
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.
.
- Follow-Ups:
- Re: COBOL Time of Day in micro-seconds or nano-seconds
- From: Howard Brazee
- Re: COBOL Time of Day in micro-seconds or nano-seconds
- From: Robert
- Re: COBOL Time of Day in micro-seconds or nano-seconds
- References:
- COBOL Time of Day in micro-seconds or nano-seconds
- From: don@xxxxxxxxxxx
- COBOL Time of Day in micro-seconds or nano-seconds
- Prev by Date: Re: COBOL Time of Day in micro-seconds or nano-seconds
- Next by Date: Re: COBOL Time of Day in micro-seconds or nano-seconds
- Previous by thread: Re: COBOL Time of Day in micro-seconds or nano-seconds
- Next by thread: Re: COBOL Time of Day in micro-seconds or nano-seconds
- Index(es):
Relevant Pages
|
|