× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Mcsec in Timestamp, is it possible
  • From: tomh@xxxxxxxxx
  • Date: Tue, 13 Feb 2001 14:44:20 -0600


It made for interesting reading, especially the part about "8 microseconds to the tick", but how would you code this in RPGIV?  And how would I retrieve the date, or time of day, from mattod?


*/

#include <stdio.h>
#include <unistd.h>
#include <QSYSINC/MIH/MATTOD>

void main()
{
  unsigned long long t[10];
  int i;

  /* get 10 consecutive time readings */
  for (i=0; i<10; i++){
     mattod((char*)&(t[i]));
     printf(" "); /* slight delay */
  }
  printf("\n");

  for (i=0; i<10; i++)
  {
     printf("Original Hex:0x%llX " , t[i]);
     /* right-shift the clock bits from high to low for number of ticks */
     t[i] = t[i] >> 15;
     printf("ticks:%lld \n", t[i]);
  }
}



"Urbanek, Marty" <Marty_Urbanek@stercomm.com>
Sent by: owner-midrange-l@midrange.com

02/13/01 01:19 PM
Please respond to MIDRANGE-L

       
        To:        "'MIDRANGE-L@midrange.com'" <MIDRANGE-L@midrange.com>
        cc:        
        Subject:        RE: Mcsec in Timestamp, is it possible



Dimitri,

I have no experience with this, but I just saw a URL for that today:

http://as400.rochester.ibm.com/developer/porting/example25.html

What a coincidence!

-Marty
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.