home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / dhry21.zip / PURE2_1.DIF < prev    next >
Text File  |  1992-08-24  |  4KB  |  142 lines

  1. *** rer/dhry.h    Sun Dec  4 00:08:26 1988
  2. --- weicker/dhry.h    Sun Dec  4 00:09:00 1988
  3. ***************
  4. *** 38,45
  5.    *              PC Research. Inc.
  6.    *              94 Apple Orchard Drive
  7.    *              Tinton Falls, NJ 07724
  8. !  *                      Phone:  (201) 389-8963 (9-17 EST)               
  9. !  *                      Usenet: ...!uunet!pcrat!rick
  10.    *
  11.    *      Please send results to Rick Richardson and/or Reinhold Weicker.
  12.    *      Complete information should be given on hardware and software used.
  13.  
  14. --- 38,45 -----
  15.    *              PC Research. Inc.
  16.    *              94 Apple Orchard Drive
  17.    *              Tinton Falls, NJ 07724
  18. !  *                      Phone:  (201) 834-1378 (9-17 EST)               
  19. !  *                      Usenet: ...!seismo!uunet!pcrat!rick
  20.    *
  21.    *      Please send results to Rick Richardson and/or Reinhold Weicker.
  22.    *      Complete information should be given on hardware and software used.
  23. ***************
  24. *** 348,354
  25.   /* Compiler and system dependent definitions: */
  26.   
  27.   #ifndef TIME
  28. - #undef TIMES
  29.   #define TIMES
  30.   #endif
  31.                   /* Use times(2) time function unless    */
  32.  
  33. --- 348,353 -----
  34.   /* Compiler and system dependent definitions: */
  35.   
  36.   #ifndef TIME
  37.   #define TIMES
  38.   #endif
  39.                   /* Use times(2) time function unless    */
  40. ***************
  41. *** 353,366
  42.   #endif
  43.                   /* Use times(2) time function unless    */
  44.                   /* explicitly defined otherwise         */
  45. - #ifdef MSC_CLOCK
  46. - #undef HZ
  47. - #undef TIMES
  48. - #include <time.h>
  49. - #define HZ    CLK_TCK
  50. - #endif
  51. -         /* Use Microsoft C hi-res clock */
  52.   
  53.   #ifdef TIMES
  54.   #include <sys/types.h>
  55.  
  56. --- 352,357 -----
  57.   #endif
  58.                   /* Use times(2) time function unless    */
  59.                   /* explicitly defined otherwise         */
  60.   
  61.   #ifdef TIMES
  62.   #include <sys/types.h>
  63. *** rer/dhry_1.c    Sun Dec  4 00:08:36 1988
  64. --- weicker/dhry_1.c    Sun Dec  4 00:09:09 1988
  65. ***************
  66. *** 47,53
  67.   struct tms      time_info;
  68.   extern  int     times ();
  69.                   /* see library function "times" */
  70. ! #define Too_Small_Time (2*HZ)
  71.                   /* Measurements should last at least about 2 seconds */
  72.   #endif
  73.   #ifdef TIME
  74.  
  75. --- 47,53 -----
  76.   struct tms      time_info;
  77.   extern  int     times ();
  78.                   /* see library function "times" */
  79. ! #define Too_Small_Time 120
  80.                   /* Measurements should last at least about 2 seconds */
  81.   #endif
  82.   #ifdef TIME
  83. ***************
  84. *** 56,65
  85.   #define Too_Small_Time 2
  86.                   /* Measurements should last at least 2 seconds */
  87.   #endif
  88. - #ifdef MSC_CLOCK
  89. - extern clock_t    clock();
  90. - #define Too_Small_Time (2*HZ)
  91. - #endif
  92.   
  93.   long            Begin_Time,
  94.                   End_Time,
  95.  
  96. --- 56,61 -----
  97.   #define Too_Small_Time 2
  98.                   /* Measurements should last at least 2 seconds */
  99.   #endif
  100.   
  101.   long            Begin_Time,
  102.                   End_Time,
  103. ***************
  104. *** 139,147
  105.   #ifdef TIME
  106.     Begin_Time = time ( (long *) 0);
  107.   #endif
  108. - #ifdef MSC_CLOCK
  109. -   Begin_Time = clock();
  110. - #endif
  111.   
  112.     for (Run_Index = 1; Run_Index <= Number_Of_Runs; ++Run_Index)
  113.     {
  114.  
  115. --- 135,140 -----
  116.   #ifdef TIME
  117.     Begin_Time = time ( (long *) 0);
  118.   #endif
  119.   
  120.     for (Run_Index = 1; Run_Index <= Number_Of_Runs; ++Run_Index)
  121.     {
  122. ***************
  123. *** 199,207
  124.   #endif
  125.   #ifdef TIME
  126.     End_Time = time ( (long *) 0);
  127. - #endif
  128. - #ifdef MSC_CLOCK
  129. -   End_Time = clock();
  130.   #endif
  131.   
  132.     printf ("Execution ends\n");
  133.  
  134. --- 192,197 -----
  135.   #endif
  136.   #ifdef TIME
  137.     End_Time = time ( (long *) 0);
  138.   #endif
  139.   
  140.     printf ("Execution ends\n");
  141.