Re: COBOL Time of Day in micro-seconds or nano-seconds
- From: Robert <no@xxxxxx>
- Date: Thu, 29 May 2008 22:02:04 -0500
On Thu, 29 May 2008 11:46:43 -0700 (PDT), "don@xxxxxxxxxxx" <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.
GNU C gettimeofday() is available on the most platforms. It returns microsecond
resolution, depending on OS capability of course. You can call it directly from Cobol.
.
- Follow-Ups:
- Re: COBOL Time of Day in micro-seconds or nano-seconds
- From: Michael Wojcik
- 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: Opinions on approach, please...
- 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
|