/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <sys/time.h>
#include <stdio.h>

int main()
{
   int i;
   struct timeval tv[20];
   struct timezone tz[20];
   for(i=0;i<20;i++) {
      gettimeofday(&tv[i],&tz[i]);
   }
   for(i=0;i<20;i++) {
      printf(" %ld %ld\n",tv[i].tv_sec,tv[i].tv_usec);
   }
   return 0;
}
