#include <stdio.h>
#include <string.h>
#include <sys/time.h>

void main(int argc, char *argv) {
  char a[48];
  char b[241];
  int i, j;
  struct timeval old_top, new_top;
  struct timezone old_tzp, new_tzp;
  double delay;

  j = gettimeofday(&old_top, &old_tzp);

  for(i=0; i<10000000; i++) {
    strcpy(a, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); /* 1st */
    memcpy((char *)&b[0], (char *)&a[0], 48);
    strcpy(a, "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"); /* 2nd */
    memcpy((char *)&b[48], (char *)&a[0], 48);
    strcpy(a, "cccccccccccccccccccccccccccccccccccccccccccccccc"); /* 3rd */
    memcpy((char *)&b[96], (char *)&a[0], 48);
    strcpy(a, "dddddddddddddddddddddddddddddddddddddddddddddddd"); /* 4th */
    memcpy((char *)&b[144], (char *)&a[0], 48);
    strcpy(a, "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"); /* 5th */
    memcpy((char *)&b[192], (char *)&a[0], 48);
    /* printf("b = %s\n", b); */
  }

  j = gettimeofday(&new_top, &new_tzp);
  
  delay = new_top.tv_sec - old_top.tv_sec + (new_top.tv_usec - old_top.tv_usec)*0.000001;
  printf("Time = %g\n", delay);

  exit(9);

}

